payment_method
attribute to stripe
. This will return an empty payment method with a generated Stripe setup intent secret.payment_intent_id
and intent_client_secret
, you need to confirm the payment using the Stripe SDKpayment.requires_auth
, every time the subscription charge needs to be re-authenticated. You will need to handle the flow to ensure that your customer's card is re-authenticated. This could be handled by sending an email or a push notification to your customer notifying them on that a payment needs to be re-authenticated. Have a look at our SCA confirm payment page example to get a better understanding of the flow required to re-authenticate a payment (or just clone and copy our example!).payment.requires_auth.
The event will contain all the parameters you need to re-authenticate an off-session payment.POST /payments/<payment_id>/confirm
with thepayment_intent_id
and the payment_client_secret
properties in the body.