-
Notifications
You must be signed in to change notification settings - Fork 243
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
You cannot create a charge with a PaymentMethod? #39
Comments
how do you call "stripe.Charge.create"? which package is that? Context? |
That is how my current webapp works, on browser, I use https://js.stripe.com/v3/, collect stripe token. On server side, I call stripe.charge.create with the token to complete the purchase. |
Could you please add some flutter sample code for the whole flow to use this lib? |
Please refer to the official docs - they include lots of examples also for the server side. |
tipsi-stripe returns token not payment id. |
tipsi-stripe in the latest branch returns the exact same thing as flutter_stripe_payment. |
When I use the token to call stripe.Charge.create, I got error
You cannot create a charge with a PaymentMethod. Use the Payment Intents API instead
Any idea what is the problem?
The text was updated successfully, but these errors were encountered: