From 278f862cc63c75804113f13f8d8743ca0def9266 Mon Sep 17 00:00:00 2001 From: Jacqueline Rinnhofer Date: Mon, 12 Jun 2017 11:55:46 +0200 Subject: [PATCH] #49 Update consent message, send basketdata for ratepay and wirecard --- Frontend/WirecardCheckoutSeamless/Models/Config.php | 2 +- Frontend/WirecardCheckoutSeamless/Models/Seamless.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Frontend/WirecardCheckoutSeamless/Models/Config.php b/Frontend/WirecardCheckoutSeamless/Models/Config.php index 75eb092..4d9e965 100644 --- a/Frontend/WirecardCheckoutSeamless/Models/Config.php +++ b/Frontend/WirecardCheckoutSeamless/Models/Config.php @@ -477,7 +477,7 @@ public function getSnippets() 'namespace' => 'frontend/checkout/wirecard', 'locale' => '1', 'name' => 'WirecardCheckoutSeamlessPayolutionLink', - 'value' => 'Bewilligung' + 'value' => 'Einwilligung' ), array( 'namespace' => 'frontend/checkout/wirecard', diff --git a/Frontend/WirecardCheckoutSeamless/Models/Seamless.php b/Frontend/WirecardCheckoutSeamless/Models/Seamless.php index 6349d1a..94c58ff 100644 --- a/Frontend/WirecardCheckoutSeamless/Models/Seamless.php +++ b/Frontend/WirecardCheckoutSeamless/Models/Seamless.php @@ -135,8 +135,8 @@ public function getResponse($paymentType, $amount, $currencyShortName, $urls, $p ->setConsumerData($this->getConsumerData($paymentType)); if (Shopware()->WirecardCheckoutSeamless()->Config()->SEND_BASKET_DATA - || ($paymentType == WirecardCEE_QMore_PaymentType::INSTALLMENT) - || ($paymentType == WirecardCEE_QMore_PaymentType::INVOICE) + || ($paymentType == WirecardCEE_QMore_PaymentType::INSTALLMENT && Shopware()->WirecardCheckoutSeamless()->Config()->INSTALLMENT_PROVIDER != 'payolution') + || ($paymentType == WirecardCEE_QMore_PaymentType::INVOICE && Shopware()->WirecardCheckoutSeamless()->Config()->INVOICE_PROVIDER != 'payolution') ) { $init->setBasket($this->getShoppingBasket()); }