/** * Executes the pay request to sofort */ public function paymentRequest() { $orderId = $this->_getQuote()->getReservedOrderId(); $this->_sofortSdk->setVersion('magento_3.0'); $this->_sofortSdk->setAmount(Mage::app()->getStore()->roundPrice($this->_getQuote()->getGrandTotal())); $this->_sofortSdk->setCurrencyCode($this->_getQuote()->getBaseCurrencyCode()); $this->_sofortSdk->setReason($this->_getReasonOne(), $this->_getReasonTwo()); $this->_sofortSdk->setSuccessUrl(Mage::getUrl('pisofort/payment/success', array('orderId' => $orderId)), true); $this->_sofortSdk->setAbortUrl(Mage::getUrl('pisofort/payment/abort', array('orderId' => $orderId))); $this->_sofortSdk->setNotificationUrl(Mage::getUrl('pisofort/payment/notification', array('orderId' => $orderId))); $this->_sofortSdk->setCustomerprotection((bool) Mage::getStoreConfig('payment/paymentnetwork_pnsofortueberweisung/customer_protection', Mage::app()->getStore()->getStoreId())); $this->_sofortSdk->sendRequest(); }