Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More user-friendly when returning #318

Open
wants to merge 1 commit into
base: b-6.3.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions views/blocks/page/checkout/select_payment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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()}]
<script>
window.location.replace('[{$oViewConf->getCancelPayPalPaymentUrl()}]');
</script>
[{/if}]

[{if $config->isActive() && !$oViewConf->isPayPalExpressSessionActive()}]
[{include file="modules/osc/paypal/sepa_cc_alternative.tpl" sPaymentID=$sPaymentID}]
[{/if}]
Expand Down