From cfe8c6f39bf0346e8e20c1acebb5c6fb11a7652c Mon Sep 17 00:00:00 2001 From: Tim Bischoff Date: Mon, 12 Aug 2024 13:07:50 +0200 Subject: [PATCH] add Redirect to Payment Selection Page, to show Payment Methods --- views/blocks/page/checkout/select_payment.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/views/blocks/page/checkout/select_payment.tpl b/views/blocks/page/checkout/select_payment.tpl index d11a8dd8..ce9bf12a 100644 --- a/views/blocks/page/checkout/select_payment.tpl +++ b/views/blocks/page/checkout/select_payment.tpl @@ -2,6 +2,14 @@ [{include file='modules/osc/paypal/select_payment.tpl'}] [{elseif $sPaymentID == "oscpaypal_sepa" || $sPaymentID == "oscpaypal_cc_alternative"}] [{assign var="config" value=$oViewConf->getPayPalCheckoutConfig()}] + + [{* Reset PayPal Checkout Session and redirect to Payments Selection Page, when PayPal Express Session active and not closed *}] + [{if $sPaymentID == 'oscpaypal_cc_alternative' && $config->isActive() && $oViewConf->isPayPalExpressSessionActive()}] + + [{/if}] + [{if $config->isActive() && !$oViewConf->isPayPalExpressSessionActive()}] [{include file="modules/osc/paypal/sepa_cc_alternative.tpl" sPaymentID=$sPaymentID}] [{/if}]