#bachir-subscription-manual3ds

1 messages · Page 1 of 1 (latest)

versed plazaBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

jagged trellis
#

@nimble haven can you give a clear summary of the context and your overall question so that I can help you further?

nimble haven
#

sure, sorry

#

I'd like to get the return_url in order to handle the 3DS flow on the client when creating a subscription through a POST request.
The issue is that in the response, when looking inside the latest_invoice.payment_intent, the return URL is not present. But, when looking in the payment_intent object on Stripe, the return_url is present.

Do I have to refetch the payment intent, after creating the subscription in my code, in order to access the return_url ?

jagged trellis
#

@nimble haven Why aren't you using our official SDKs for this? It is strongly discouraged for anyone but the most advanced large users to do their own redirect like this

#

bachir-subscription-manual3ds

nimble haven
#

What do you mean ?

jagged trellis
#

You shouldn't be manually extracting the URL like this. You should instead be confirming the PaymentIntent client-side instead with Stripe.js

nimble haven
#

by confirming client side, it triggers the 3DS flow ?

#

automatically ?

jagged trellis
#

yes

nimble haven
#

We basically moved the payment confirmation to the backend (apart from confirming 3DS / ACH payments...) to protect against card testing, so this is why we ended up having to do it this way.

jagged trellis
#

That's not what I would recommend at least. Everyone does the client-side confirmation

nimble haven
#

oh ok!

#

how do they protect againt card testing ?

jagged trellis
#

You make sure that card testers can't come and create subscriptions over and over again. But there's a maximum number of confirmations per PaymentIntent so they can't really take one PaymentIntent and then confirm it thousands of time.

#

I'm not an expert at card testing though, that might be a better question for our support team