Ejemplo n.º 1
0
 /**
  * @return $response 
  */
 protected function mopt_payone__instanttransfer()
 {
     $userId = Shopware()->Session()->sUserId;
     if ($this->isRecurringOrder()) {
         $paymentData = Shopware()->Session()->moptPayment;
     } else {
         $sql = 'SELECT `moptPaymentData` FROM s_plugin_mopt_payone_payment_data WHERE userId = ?';
         $paymentData = unserialize(Shopware()->Db()->fetchOne($sql, $userId));
     }
     $paymentShortName = $this->getPaymentShortName();
     $paymentData['mopt_payone__onlinebanktransfertype'] = $this->moptPayonePaymentHelper->getOnlineBankTransferTypeFromPaymentName($paymentShortName);
     $config = $this->moptPayoneMain->getPayoneConfig($this->getPaymentId());
     $payment = $this->moptPayoneMain->getParamBuilder()->getPaymentInstantBankTransfer($this->Front()->Router(), $paymentData);
     $response = $this->mopt_payone__buildAndCallPayment($config, 'sb', $payment);
     return $response;
 }