#just4skiillz
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ so you want to create and confirm the Payment Intent in a single request, rather than needing to make two requests for that? If so, you'll want to set confirm to true when creating the Payment Intent:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh ok thank you
Any time!
now im getting this:
A return_url must be specified because this Payment Intent is configured to automatically accept the payment methods enabled in the Dashboard, some of which may require a full page redirect to succeed. If you do not want to accept redirect-based payment methods, set automatic_payment_methods[enabled] to true and automatic_payment_methods[allow_redirects] to never when creating Setup Intents and Payment Intents.
what return url should I put, im not sure, im on a mobile react native app
You should put the URL where you would want your customer to be redirected to after they complete the payment's authentication flow, if the payment method they decided to use requires a redirect.