#Naveed | Web3Auth
1 messages · Page 1 of 1 (latest)
I assume for case one I'll have to use error_if_incomplete
Yes you can create as much Subscription as you need in the same call.
ok but I cannot ensure all or nothing scenario right. Either all subs get created successfully or nothing.
I assume this scenario won't really be that common anyway
As in sub 1 creation could succeed, but not 2, It'd be nontrivial to rollback the created subs.
If 1 isn't created then you simply cancel/delete the second.
There is no mechanisme in Stripe to handle this, but you can monitor this in your integration
Just for curiosity, the two Subscription have the same billing period or different ?
so in the beginning it was the same, so I modeled it with one sub multiple products
however, now i need to model annual with monthly
so not possible
i need 2 subs now
error_if_incomplete returned => if a subscription’s first invoice cannot be paid
you can use this behavior to make sure that you create only subscriptions that the first invoice can be paid.
Yes I think this definitely fits my use case
I basically use setup intents to ensure customers add their card successfully
and THEN go on to create subs for them
idk if ill face double 3d secure scenarios for certain card types and whatnot though
For example the card https://stripe.com/docs/testing#authentication-and-setup
Authenticate unless set up 4000002500003155
Usually gave me issues
Like I remember it required authorisation even after having set up card successfully
it should no.
In live mode, some card bank issuers can request another 3ds, so you need to setup your webhooks in order to handle these cases:
https://stripe.com/docs/billing/subscriptions/webhooks#additional-action
Or you can configure some logics in order to prevent/handle failure payments:
https://dashboard.stripe.com/settings/billing/automatic#:~:text=Manage failed payments