#Naveed | Web3Auth
1 messages · Page 1 of 1 (latest)
Hi there, you just need to pass the new price and quantity to the items param,
ok and for the price item that im going to be replacing i need to specify its id?
is there a way to just have the behaviour of replacing all the items with the new ones that i specify?
No, you need to specify the subscription item ID if you want to replace it.
does it matter which one is replaced by which?
e.g. imagine we have 2 prices on a sub, 1st one is flat monthly fee, one is metered monthly
what if on update i replae the flat with a different metered, and a metered wth a different flat?
and another question is whats the advantage of update sub vs delete then recreate sub
- They will be replaced accordingly based on your request
- It's entirely up to you