#Subalee

1 messages ยท Page 1 of 1 (latest)

primal elmBOT
regal ivy
#

Hi let's chat in this thread

cosmic marsh
#

Hey, sure ๐Ÿ™‚ would you like a more concrete example of the use case I'm describing?

regal ivy
#

Yes that would help

#

Also have you tried out these things in test mode?

#

That should give you a better idea of what's possible

cosmic marsh
#

Imagine you offer 2 different plans BASIC and PRO. You can also buy another optional item, let's call this Addon.

Now imagine you bought BASIC plan and 3 Addons. after some time you want to upgrade to PRO but no longer need the 3 Addons you've bought.

When doing updates we want to set the payment_behaviour to pending_if_incomplete. Unfortunately pending updates do not support deleted attribute on items only the price and quantity. So it's impossible to remove an item using this payment behaviour.

I have tested this in the test mode and it will result in an error regarding the attribute that's not supported (deleted: boolean) in this case.

What I'm proposing is to do a subsription update where I first change the quantity of the Addon subscription item to 0 Then do another update where I simply deleted it completely using a different payment_behavior

regal ivy
#

Sorry for the delay

#

Yep what you are proposing to do I think makes the most sense

#

Yes I believe this is all

#

Recommend testing this out in test mode though

cosmic marsh
#

No worries! Thank you for the consult,I truly appreciate how fast you and your team responds here ๐Ÿ™‚

primal elmBOT