#Wizard-Boleto-question

1 messages · Page 1 of 1 (latest)

fair abyss
#

hello, give me a sec

#

to summarize, you basically want to not use Stripe.js and also not use Stripe Checkout and handle displaying the Boleto authentication page to your customers outside of Stripe, right?

dim sapphire
#

correct

fair abyss
#

the way to do that is to create a PaymentIntent like shown here: https://stripe.com/docs/payments/boleto/accept-a-payment?platform=web#web-create-payment-intent

but you also pass a return_url parameter as part of that request: https://stripe.com/docs/api/payment_intents/create?lang=node#create_payment_intent-return_url
and also pass confirm: true

that way, you get a PaymentIntent object back in the API response, with a next_action.url field
That URL is a Stripe hosted URL that you can present to your Customer in your own email.

When the Customer authenticates the Boleto payment, you receive a PaymentIntent Webhook Event to learn about whet happened with the payment