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();
 }
Esempio n. 2
0
 /**
  * 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();
 }