#floppydiscen-redirect-flow

1 messages ยท Page 1 of 1 (latest)

uneven shoalBOT
vivid barn
#

Hi ๐Ÿ‘‹

We can't really offer advice for beta programs here.

pastel thunder
#

Hmm okay. How about this

vivid barn
#

Since this is an invite-only beta you will need to reach out to the contact who got you into the program

pastel thunder
#

I will. Maybe if I rephrase it, you might be able to help since, I presume, MobilePay is not the only redirect solution for Stripe

vivid barn
#

True, it is not. There is an entire category of bank redirect payment methods

pastel thunder
#

Lovely. I find it rather confusing, how to use the redirect solution.

I use the backend api to create payment intents. For MobilePay I have to provide a .ReturnUrl, .Confirm and PaymentMethod option in order to get redirected to the "Confirm the payment". In order to do so, I have to provide the PaymentMethod when I create the payment intent however, since I'm usign the Elements react lib. When I create the payment intent initially, a payment method has not yet been chosen. How do I go about updating the payment intent with the chosen payment method after the user has chosen the payment method with Elements?

#

It's easy enough using Apple Pay and Google Pay since they are under the "card" payment method and so I can pre-specify

vivid barn
#

I'm not sure I follow. When the PaymentIntent is confirmed client-side (after the redirect is successful and the return_url is hit), the Payment Method is created and added to the Payment Intent.

pastel thunder
#

You might be right. Uuuuh. Let me just check something. I might be a dumb dumb

vivid barn
#

No worries, integrating a new flow pattern can be tricky

pastel thunder
#

You were absolutely right. I was depending unnecessarily on a new flow when I could simply use the .confirmPayment to do the heavy lifting for me. Thank you Snufkin!

vivid barn
#

Great ๐ŸŽ‰ I'm glad we got it working ๐Ÿ™‚