public function create(Varien_Object $payment, $amount, $order, $paymentMethod = null, $merchantAccount = null) { $incrementId = $order->getIncrementId(); $orderCurrencyCode = $order->getOrderCurrencyCode(); $customerId = $order->getCustomerId(); $this->reference = $incrementId; $this->merchantAccount = $merchantAccount; $this->amount->currency = $orderCurrencyCode; $this->amount->value = $this->_formatAmount($amount); //shopper data $customerEmail = $order->getCustomerEmail(); $this->shopperEmail = $customerEmail; $this->shopperIP = $order->getRemoteIp(); $this->shopperReference = $customerId; //IDEAL $this->entranceCode = $order->getQuoteId(); $id = explode(DS, $payment->getInfoInstance()->getPoNumber()); $this->issuerId = $id[0]; $this->language = 'nl'; $this->merchantReturnUrl = Mage::app()->getStore()->getBaseUrl() . 'checkout/onepage/success'; return $this; }