From 3f75e9873030c9e4a2380db960591092014ae89f Mon Sep 17 00:00:00 2001 From: tomazpu <32056440+tomazpu@users.noreply.github.com> Date: Thu, 23 Aug 2018 14:46:32 +0200 Subject: [PATCH 1/2] #68 Update terms check --- Frontend/WirecardCheckoutPage/Models/Page.php | 4 ++-- .../responsive/frontend/checkout/confirm.tpl | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Frontend/WirecardCheckoutPage/Models/Page.php b/Frontend/WirecardCheckoutPage/Models/Page.php index 0b9d006..1df47d5 100644 --- a/Frontend/WirecardCheckoutPage/Models/Page.php +++ b/Frontend/WirecardCheckoutPage/Models/Page.php @@ -97,7 +97,7 @@ public function initiatePayment($paymentType, $amount, $currency, $returnUrl, $c ->setConsumerData($this->getConsumerData($paymentType)) ->createConsumerMerchantCrmId($email); - if(Shopware()->Session()->offsetGet('wcpConsumerDeviceId') != null) { + if (Shopware()->Session()->offsetGet('wcpConsumerDeviceId') != null) { $oFrontendClient->consumerDeviceId = Shopware()->Session()->offsetGet('wcpConsumerDeviceId'); //default set to null, but no effect Shopware()->Session()->offsetSet('wcpConsumerDeviceId', null); @@ -112,7 +112,7 @@ public function initiatePayment($paymentType, $amount, $currency, $returnUrl, $c ) { $oFrontendClient->setBasket($this->getShoppingBasket()); } - if(Shopware()->WirecardCheckoutPage()->getConfig()->ENABLE_DUPLICATE_REQUEST_CHECK){ + if (Shopware()->WirecardCheckoutPage()->getConfig()->ENABLE_DUPLICATE_REQUEST_CHECK){ $oFrontendClient->setDuplicateRequestCheck(true); } diff --git a/Frontend/WirecardCheckoutPage/Views/responsive/frontend/checkout/confirm.tpl b/Frontend/WirecardCheckoutPage/Views/responsive/frontend/checkout/confirm.tpl index a989be2..f9dc3fb 100755 --- a/Frontend/WirecardCheckoutPage/Views/responsive/frontend/checkout/confirm.tpl +++ b/Frontend/WirecardCheckoutPage/Views/responsive/frontend/checkout/confirm.tpl @@ -7,6 +7,11 @@ {$wcpConsumerDeviceIdScript} {/if}