#Naveed | Web3Auth

1 messages · Page 1 of 1 (latest)

ornate hemlockBOT
frail talon
#

I assume for case one I'll have to use error_if_incomplete

plush notch
#

Yes you can create as much Subscription as you need in the same call.

frail talon
#

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

plush notch
#

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.

plush notch
frail talon
#

got it

#

and am i right about using error_if_incomplete in this scenario

plush notch
#

Just for curiosity, the two Subscription have the same billing period or different ?

frail talon
#

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

plush notch
#

you can use this behavior to make sure that you create only subscriptions that the first invoice can be paid.

frail talon
#

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

#

Like I remember it required authorisation even after having set up card successfully

plush notch