/** * performs direct link request either for inline payments and direct sale mode or the normal maintenance call (invoice) * * @override * @param Varien_Object $payment * @param float $amount * * @return Mage_Payment_Model_Abstract|void */ public function capture(Varien_Object $payment, $amount) { /** * process direct sale inline payments (initial request) */ if (Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE == $this->getConfigPaymentAction() && $this->getPaymentHelper()->isInlinePayment($payment)) { $order = $payment->getOrder(); $quote = $this->getQuoteHelper()->getQuote(); $this->confirmPayment($order, $quote, $payment); } elseif (0 < strlen(trim($payment->getAdditionalInformation('paymentId')))) { parent::capture($payment, $amount); } }