202-ecommerce / stripe_official

After years of hard work with Stripe connector for PrestaShop, 202 ecommerce stop the development of Stripe module on January 9th 2023. Thanks for all contributors that help us!
20 stars 20 forks source link

Bug fixing changing amount AJAX #97

Closed gmauro99 closed 2 years ago

gmauro99 commented 3 years ago

Context: Any version of Prestashop

Problem: By inserting the Stripe payment module within a checkout page (such as an onepagecheckout module) and updating the cart (removing, lowering or increasing the quantities of the products) the amount to be paid always remains the same.

Solution of the problem: After carrying out operations on the cart on the onecheckout page, the payment intent is not updated or a new payment intent is created. We therefore decided to recall the value of the cart amount updated by the DB. Therefore, this value is updated through the intent update.

@202-ecommerce @tbigueres @Afayadas

clotairer commented 2 years ago

The pre release is ready here with refactored version of your PR. You can test it if you want. Thank you.