Mira chalak
Mira chalak

Reputation: 387

3D secure authentication and Stripe

I am creating subscriptions upon completing the Stripe Checkout session and from what I have read, stripe supports 3d secure authentication payment on its checkout session. However, if this is true for the first time the client pays for the subscription (stripe will ask him to enter a code on the checkout session page), how will that be applicable for the remaining payments in the following months? Where will the user enter the code?

Upvotes: 2

Views: 1873

Answers (2)

ExpertWeblancer
ExpertWeblancer

Reputation: 1466

In my case, Just added off_session when you create charge about user.

$user->charge($price, $paymentMethod, ['off_session' => true]); 

Hopefully, it would be worked for you.

Upvotes: 0

Zhi Kai
Zhi Kai

Reputation: 1587

Assuming you are using Stripe Billing, your user will be automatically charged on recurring months. So they usually only have to complete 3DS for the initial payment. But if the card issuer requires 3DS to be fulfilled every invoice, you can configure your Stripe settings to automatically email your user to complete 3DS on a Stripe hosted page. However, if you want to write custom failure handling, you will need to add a webhook for customer.subscription.updated and check if the status is past_due. https://stripe.com/docs/billing/subscriptions/overview#recurring-charges

Upvotes: 1

Related Questions