#Naveed | Web3Auth
1 messages · Page 1 of 1 (latest)
What is the recommended way to handle SCA for customers subscribing to a plan with an upfront fee?
This is the recommended Subscription integration:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
You should usedefault_incomplete
Also, is this confirmation of payment intent considered as off session or on session? Should I create the subscription as on session?
The payment attempt of the first invoice is done on_session as the customer is in the checkout flow.
I see, and so once this is set up does this guarantee further recurring charges wont have 3d secure
or is there no guarantee of that
if not i guess i can use Stripes built in 3d secure email?
Yes, the bank issuer may sometimes requires a 3ds auth
yes, you can configure this in your dashboard settings:
https://dashboard.stripe.com/settings/billing/automatic
Whats the difference between allow incomplete and default incomplete though
Use allow_incomplete to create subscriptions with status=incomplete if the first invoice cannot be paid
and
Use default_incomplete to create Subscriptions with status=incomplete when the first invoice requires payment, otherwise start as active
so i take it this means in scenarios where the subscription can get created successfully it would start off as incomplete?
for default incomplete i mean
as in if i have a payment method on file and i create subscription it can either
- fail (maybe due to 3d secure requirement)
or - succeed
- fail (maybe due to 3d secure requirement)
When following the guide I shared with you, it shouldn't fail, because that integration take into account 3ds too
to differentiate between 1 and 2, in the backend should i have some condition to check like this
// ...
}```
cuz if it fails to update i will have to send the client secret back like subscription.LatestInvoice.PaymentIntent.ClientSecret
What update are you trying to do ? you should just follow the guide I shared with you, you don't need this check particularly when creating a Subscription.
Hmm yes ur right, it seems that i get back a payment intent regardless of whether or not the customer has a valid card on file or not which is what im looking for