#just4skiillz

1 messages ยท Page 1 of 1 (latest)

desert obsidianBOT
pseudo token
#

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

latent coral
#

oh ok thank you

pseudo token
#

Any time!

latent coral
#

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

pseudo token
#

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.

latent coral
#

can I put a naviation.navigate(" checkout succeed page")

#

navigation*

#

or it need a https...