-
- Downloads
[FIX] payment_stripe: hide disabled local payment methods
If a merchants didn't enable a local Payment Method Type (PMT) on Stripe side (such as bancontact), his customers eligible for it (ex.: Belgian and paying in EUR) won't be able to pay using it. This commit fixes this issue by adding a condition on the payment icons assigned to Stripe: if the payment icon related to a given payment method is not listed as a supported payment icon, the related payment method is not offered to customers, unless the payment icon does not exist at all. User can enable PMTs through (Payment Acquirers > Stripe > Configuration > Supported Payment Icons). This concerns: ideal, bancontact, eps, giropay and p24. This solution is not entirely satisfactory but it isn't possible to fetch enabled PMT from Stripe. opw-2335482 closes odoo/odoo#60721 X-original-commit: d51cabac Signed-off-by:Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
Showing
- addons/payment/data/payment_icon_data.xml 15 additions, 0 deletionsaddons/payment/data/payment_icon_data.xml
- addons/payment/static/img/eps.png 0 additions, 0 deletionsaddons/payment/static/img/eps.png
- addons/payment/static/img/giropay.png 0 additions, 0 deletionsaddons/payment/static/img/giropay.png
- addons/payment/static/img/p24.png 0 additions, 0 deletionsaddons/payment/static/img/p24.png
- addons/payment_stripe/models/payment.py 8 additions, 1 deletionaddons/payment_stripe/models/payment.py
- addons/payment_stripe/tests/test_stripe.py 65 additions, 3 deletionsaddons/payment_stripe/tests/test_stripe.py
Loading
Please register or sign in to comment