#rubs - billing 3DS
1 messages · Page 1 of 1 (latest)
Hi 👋
Okay what is the problem?
the subscription is automaticaly created without asking anything to the user, it is a call api made with php who create a new subscription and automaticaly charge the default payment method of the customer
but his payment method is a credit card who needs a 3D secure confirmation
he doesn't receive anything
how to handle that ?
it is a system of upgrade on our website where you can add new licenses
In that case your integration needs to catch that the payment intent associated with the invoice is in a state of requires_action and you bring the user back on-session to complete 3DS authentication.
but it is an asynchronus system
I guess I have to catch the webhook payment_intent.failed something like that
but in php I cannot redirect the user somewhere after receiving the webhook
Do I have the "require_action" info directly from response of create subscription call api ?
Your integration would need to be able to notify the user that they need to come back on session to fix their authentication. Sending an email for example
or use the radar feature ?
Ok no
hum so which event I have to listen to handle this case ?
I can't find if the subscription object response contains the require_action status
payment_Intent.requires_action will fire https://stripe.com/docs/api/events/types#event_types-payment_intent.requires_action and this Payment Intent will have an invoice property linking it back to your Subscription
thanks
rubs - billing 3DS