Skip to content

Commit

Permalink
Merge pull request #150 in PLUG_OPEN/swagpaymentpaypalunified from pt…
Browse files Browse the repository at this point in the history
…-9564/5.2/fix-payment-wall-safari to master

* commit 'ba512451b1ced1cbc5b01235cfd732ce83404edd':
  PT-9564 - fix plus paymentwall in safari
  • Loading branch information
mitelg committed Oct 12, 2018
2 parents 62587cb + ba51245 commit ee20443
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,15 @@
clearPaymentSelection = selectedPaymentId !== me.opts.paypalPaymentId,
thirdPartyPaymentId;

$.each(thirdPartyPaymentMethods, function(index, thirdPartyPaymentMethod) {
thirdPartyPaymentId = me.getPaymentIdFromThirdPartyMethod(thirdPartyPaymentMethod);

if (thirdPartyPaymentId === selectedPaymentId) {
clearPaymentSelection = false;
}
});
if ($.isArray(thirdPartyPaymentMethods)) {
$.each(thirdPartyPaymentMethods, function(index, thirdPartyPaymentMethod) {
thirdPartyPaymentId = me.getPaymentIdFromThirdPartyMethod(thirdPartyPaymentMethod);

if (thirdPartyPaymentId === selectedPaymentId) {
clearPaymentSelection = false;
}
});
}

if (clearPaymentSelection) {
plugin.clearPaymentSelection();
Expand Down

0 comments on commit ee20443

Please sign in to comment.