#binh

1 messages · Page 1 of 1 (latest)

heady sapphireBOT
queen sluice
#

Hello, what is your question?

unkempt bear
#

Lets first break it down into 2 stages.

  1. Add card
  2. 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?

queen sluice
#

Yes that sounds right for how our test cards are expected to work here

unkempt bear
#

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?

queen sluice
#

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?

unkempt bear
#

At the moment, open to suggestions on best practice to address this issue

queen sluice
#

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.

unkempt bear
#

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.

queen sluice
#

Good find!