#napolean-solo_api

1 messages ยท Page 1 of 1 (latest)

onyx shuttleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1480910033087762432

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

clever holly
#

hey there ๐Ÿ‘‹ so essentially, you want the addition of the new item to be conditional on the payment's success (i.e. if the payment fails, the subscription update never applies) - is that correct?

humble moat
#

yes

#

while doing so it shouldn't affect my existing subscription status

clever holly
#

if you pass payment_behavior=pending_if_incomplete and proration_behavior=always_invoice when calling Update Subscription, the update will only be applied after the payment succeeds

#

otherwise, the subscription remains in the pre-update state

humble moat
#

so if it was active, it will remain active right?

clever holly
#

yep!

humble moat
#

okay but how is the invoice behaviour handled in this case? Usually, stripe retries but after a given number of retries it usually changes the subscription to incomplete or past_due right? so in this case what happens to a stale invoice by which i mean if the user never pays for it.

clever holly
humble moat
#

alright gotcha!