#Isaac Jordão
1 messages · Page 1 of 1 (latest)
You can set redirect to if_required which should get rid of the redirect for 3DS on cards, but some payment methods always require a redirect, so you would need to either turn them off or find a way to handle the redirect for them https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
I forget if if_required will get rid of the return_url requirement if you don't have Payment Methods that need it
But how do I know if a transaction was successful?
If you set it to if_required the call's promise will resolve to a payment intent instead of redirecting. Looking to see if we have sample code for that...
I couldn't find a doc but this StackOverflow demonstrates how to handle a success here https://stackoverflow.com/a/73868451/16458642