#binh
1 messages · Page 1 of 1 (latest)
Hello, what is your question?
Lets first break it down into 2 stages.
- Add card
- Create subscription with recurring cycles
Please verify the following
In stage 1.
When the customer add their credit card. 3d auth will be required.
If the added card is successful
payment method can be one of the 3:
pm_card_authenticationRequiredOnSetup
pm_card_authenticationRequiredSetupForOffSession
pm_card_authenticationRequired
In stage 2:
When we create a subscription and charge the first cycle
If the charge is successful
payment method can be one of the the 2:
- pm_card_authenticationRequiredOnSetup
- pm_card_authenticationRequiredSetupForOffSession
if the charge is failed - pm_card_authenticationRequired
Are the above statements correct?
Yes that sounds right for how our test cards are expected to work here
Great! Thank you very much.
one last question
in the case where it's stage 2 and charge is failed
in the response payload -> is there any data that will indicate this?
Oh sorry, I spoke a bit too soon there. The charge wouldn't fail there per se. It would go in to a state of requires_action, you would definitely get indications of this on whatever objects you are looking at. I am guessing you are listening to webhook events here to see the status of these payments?
At the moment, open to suggestions on best practice to address this issue
You will get an invoice.payment_action_required event when a recurring payment requires 3DS to complete https://stripe.com/docs/billing/subscriptions/overview#requires-action
That page also lists ways that you can react to that. Basically, you will want to inform the user that they need to complete 3DS and bring them to a webpage where they can do that.
There is a Stripe setting for us to automatically send out emails like that when 3DS is required and link to a Stripe hosted page where they can complete it. Otherwise you can direct the user to the Stripe hosted invoice page or your own page and call handleNextAction on the payment intent's client secret to display the 3DS modal to them.
great, thank you.
Can you also provide the doc link for webhook on capturing all invoice attempts from subscriptions within our account.
n/m, found it. thanks again.
Good find!