/** * Set specific payment properties * * @param Payment $payment * @return void */ function initializePayment(Payment $payment) { $payment->setMerchantReference($this->merchantReference); $payment->setCurrencyCode($this->currencyCode); $payment->setPaymentAmount($this->paymentAmount); $payment->setSessionValidity($this->sessionValidity); $payment->setShipBeforeDate($this->shipBeforeDate); }
/** * Set specific payment properties * * @param Payment $payment * @return void */ public function initializePayment(Payment $payment) { $payment->setMerchantReference('12345678'); $payment->setPaymentAmount(10000); $today = new DateTime(); $shipDate = $today->modifyClone('+ 10 days'); $payment->setShipBeforeDate($shipDate); $sessionValidity = $today->modifyClone('+ 30 minutes'); $payment->setSessionValidity($sessionValidity); }