saleor / saleor-app-payment-stripe

https://saleor.io/
Other
14 stars 162 forks source link

Update amount charged on Checkout changes #181

Closed Couiljer closed 9 months ago

Couiljer commented 9 months ago

Hi there,

I'm seeking assistance with integrating the stripe plugin that works alongside Stripe Elements and Saleor. During the final step of an e-shop checkout, there's a section where users can input a voucher code. This part of the checkout is dynamic, allowing users to add or remove vouchers, which then updates the checkout summary.

Adjacent to the dynamic checkout summary, the Stripe Element (specifically, the card block) is displayed. To initialize this Stripe Element, a client_secret is necessary. Therefore, I initiate a transaction through the Saleor API to obtain this client_secret.

However, I'm encountering an issue: I can't seem to update the transaction amount when the checkout's total price changes. Here's what I've tried:

Is there something I'm misunderstanding or misusing in this process?

Thanks šŸ™

Couiljer commented 9 months ago

Okey so I solved my problem by :