Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 7 commits into
base: v2-kotlin
Choose a base branch
from

Conversation

aleixfargas
Copy link

When trying to do the following:

  • Pay with Stripe Account A
  • Change environment on same app instance without closing the app
  • Pay with Stripe Account B

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants