-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 in PLUG_OPEN/swagpaymentpaypalunified from pt…
…-9604/5.2/use-correct-payment-for-plus to master * commit '424b124c76422e21f5635498d0ee3f54006b94f3': PT-9604 - Use correct payment for PayPal Plus if shipping or payment is changed on shippingPayment page
- Loading branch information
Showing
5 changed files
with
44 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Resources/views/frontend/checkout/shipping_payment_core.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{extends file='parent:frontend/checkout/shipping_payment_core.tpl'} | ||
|
||
{* | ||
PayPal Plus integration | ||
Since the created payment changes on every payment or shipping selection change, we have to use the correct | ||
approval URL. Otherwise the initial URL will always be used, which is wrong | ||
*} | ||
{block name='frontend_checkout_shipping_payment_core_buttons_top'} | ||
{block name='frontend_checkout_shipping_payment_core_buttons_top_paypal_unified_plus'} | ||
{if $paypalUnifiedUsePlus && $paypalUnifiedApprovalUrl} | ||
<div class="is--hidden paypal-unified--plus-approval-url">{$paypalUnifiedApprovalUrl}</div> | ||
{/if} | ||
{/block} | ||
|
||
{$smarty.block.parent} | ||
{/block} | ||
|
||
{* All integrations *} | ||
{block name='frontend_account_payment_error_messages'} | ||
{block name='frontend_account_payment_error_messages_paypal_unified_errors'} | ||
{if $paypalUnifiedErrorCode} | ||
{include file='frontend/paypal_unified/checkout/error_message.tpl'} | ||
{/if} | ||
{/block} | ||
|
||
{$smarty.block.parent} | ||
{/block} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters