Skip to content

Commit

Permalink
Merge pull request #393 from OXID-eSales/PSPAYPAL-829-remove-sepa-if-…
Browse files Browse the repository at this point in the history
…not-eligible

Remove SEPA payment method if it's not eligible
mariolorenz authored Jan 31, 2025
2 parents cbea458 + 3f9e539 commit f96d915
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- [0007695](https://bugs.oxid-esales.com/view.php?id=7695): Explain better Pseudo delivery costs
- Show vaulted Payments filtered by payment-method in account-view
- fix issue with googlePay (await for the complete execution)
- fix Remove SEPA payment method of it is not eligible, temporary solution
- [0007760](https://bugs.oxid-esales.com/view.php?id=7760): Paypal return type and B2B Module

### NEW
2 changes: 1 addition & 1 deletion views/tpl/shared/page/checkout/sepa_cc_alternative.tpl
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@
<dt>
[{include file="modules/osc/paypal/select_payment.tpl"}]
<label for="payment_[{$sPaymentID}]"><b>[{$paymentmethod->oxpayments__oxdesc->value}]</b></label>
[{include file="modules/osc/paypal/paymentbuttons.tpl" buttonId=$sPaymentID buttonClass="paypal-button-wrapper large"}]
[{include file="modules/osc/paypal/paymentbuttons.tpl" buttonId=$sPaymentID buttonClass="paypal-button-wrapper paypal-button-wrapper--sepa large"}]
</dt>
</dl>
5 changes: 4 additions & 1 deletion views/tpl/shared/paymentbuttons.tpl
Original file line number Diff line number Diff line change
@@ -54,8 +54,11 @@
})
// Check if the button is eligible
if (button.isEligible()) {
// Render the standalone button for that funding source
// Render the standalone button for that funding source
button.render('#[{$buttonId}]')
} else {
//remove SEPA option from payments methods
$('.paypal-button-wrapper--sepa').parents('dl').remove();
}
});
[{else}]

0 comments on commit f96d915

Please sign in to comment.