#uh oh

1 messages · Page 1 of 1 (latest)

median flowerBOT
neat folio
#

Can you share the subscription id?

past wigeon
#

sub_1Mf4CMRMcoXgMBBB6emnR3U7

neat folio
#

I see a payment intent created. On the subscription object, you need to expand latest_invoice.payment_intent

past wigeon
#

Where do I put the expand parameter?

neat folio
#

Recommend reading those docs to understand it

#

Depends on your sdk, but that doc goes over everything

past wigeon
#

Thank you!

#

So if I further expand that payment intent, then I can grab the status and check for requires_action, and also redirect_to_url? Is that the right way to handle this?

main thorn
#

Hi 👋

What is the scenario where this is occurring? The Stripe Payment Element would handle 3DS authentication for you while the customer enters their payment method information. How is your front-end collecting this from your customers?

past wigeon
#

We are collecting the card information with cardelement, and sending it to the backend, which then creates a subscription. If that subscription status is incomplete, we check if the payment intent that was created for that subscription has requires_action as well as redirect_to_url. If that's the case, we send back the url to the client so they can go through 3DS.

main thorn
#

This will provide you more information about the process

past wigeon
#

thank you!