zyra / cordova-plugin-stripe

A Cordova plugin that lets you use Stripe's Native SDKs for Android and iOS.
MIT License
93 stars 57 forks source link

Set defaultPublishableKey on STPAPIClient before paying (Fix Code=50 “No such payment_intent” when confirm payment intent) #75

Open aleixfargas opened 3 years ago

aleixfargas commented 3 years ago

When trying to do the following:

The second payment will fail because of Fix Code=50 “No such payment_intent” when confirm payment intent

Set defaultPublishableKey on STPAPIClient before paying in order to work correctly with more than one Stripe account in a single app (Fix Code=50 “No such payment_intent” when confirm payment intent)

Maybe this is more correct to be in the setPublishableKey() method, but I'm not sure if it will work. This works for sure.