Open divyesh-savaliya opened 2 months ago
After the failed payment, attempt to call collectPaymentMethod with a new payment intent ID.
If failed, another card can be tried in succession. If change collectPaymentMethod with PaymentIntent, you should run cancelCollectPaymentMethod
before collectPaymentMethod.
Another way to reproduce
There does not appear to be a problem at this time. For longer periods of time, the Secret Key is likely to change and a revert algorithm will be required.
https://github.com/capacitor-community/stripe/assets/9690024/361e2ee1-c0c6-47d3-a029-5ced917d6c2d
@divyesh-savaliya Has this solved the problem? If so, close the Issue.
Platform
Describe the bug If a previous request failed due to an error, attempting to make a payment again result in the following message: "The client_secret provided does not match the client_secret associated with the PaymentIntent."
To Reproduce
You should encounter an error message indicating that the client secret provided does not match the client secret associated with the PaymentIntent.
Another way to reproduce
Expected behavior It should open new payment sheet with new payment intent id.
Additional context Clear previous payment intent info if its failed.
Using Function: