public function calculateRequestValues() { if (isset($this->paymentMethod)) { if ($this->paymentMethod == \PaymentMethod::INVOICE) { $this->request['paymentMethod'] = "SVEAINVOICEEU_" . $this->order->countryCode; } elseif ($this->paymentMethod == \PaymentMethod::PAYMENTPLAN) { $this->request['paymentMethod'] = "PAYMENTPLAN_" . $this->order->countryCode; } else { $this->request['paymentMethod'] = $this->paymentMethod; } } return parent::calculateRequestValues(); }
/** * calculateRequestValues adds the payment methods not to present on the * paypage to the request array */ public function calculateRequestValues() { $this->request['excludePaymentMethods'] = $this->configureExcludedPaymentMethods(); return parent::calculateRequestValues(); }