#donpuz_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1379909243091685386
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey! Looking into this for you
๐ stepping in here
It looks like you advanced time past the resumes_at timestamp.
Can you clarify what is unexpected here exactly?
ah you're right for that. usually ive been pausing collection for a single subscription renewal by setting resumes_at to +10 of current_period_end. so i guess a related issue is that the subscription renewal still goes through. do i need to keep the subscription paused for the entire time the invoice is in draft state?
Let's back up... what are you trying to do exactly?
upon receipt of invoice.created (invoice in draft) I want to pause the subscription such that the invoice is voided for this cycle
Gotcha, that's not really the purpose here of pasuing payment collection... that is used for future generated Invoices.
Instead you would just Finalize and Void the Invoice yourself here
right ok, seems like my current subscription setup finalizes and gets paid immediately, is there a param i need to set for that?
The initial Invoice for a Subscription will always finalize immediately.
However if you don't want to trigger initial payment immediately and instead control that yourself you would use payment_behavior: 'default_incomplete': https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_behavior