#tl2014_subscription-update-behavior
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/1415752520436809931
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there,
To clarify, this happens when you create a new subscription? I ask because the payment_behavior: pending_if_incomplete should only be used for updating an already existing subscription and not for creating new subscriptions. We call that out in our API docs here: https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_behavior
Dou you have a request ID you can share, where this error shows?
I'm trying to upgrade subscription plan using pending update and discount. req id is req_1vLsKiDDHhINlQ
we are using pending update and hosted invoice page in case of 3ds verification or other issues and now want to add coupons support
Ok, got it. The easiest way would possibly be to split this into two separate API calls, the first one to update/apply the discount and the second one to update the payment_behavior. But let me look for a better way to do this. Is there a specific reason why you need the pending_if_incomplete? Wouldn't allow_incomplete be the better option here when handling 3DS?
allow incomplete will move sub to incomplete status
and this will block current plan usage
if we'll apply coupon first and pending invoice expires - coupon will remain on subscriprion - need to track. also, probably it could'nt be applied, because all coupons are related to products and different plan is different product
i don't see any reason not to allow usage of discounts in pending upgrades...
lloks strange
I am not sure if I follow. You want to apply a coupon that you don't want to remain on the subscription? I am not sure I understand what you are actually trying to accomplish. Could explain with a few more details?
oh.. example: customer has sub with price A (product PA)
he wants to upgrade to price B (product PB) using coupon available only for PB
i can't do this using pending upgrade due to API limitations
i can't follow your advice and attach coupon to sub because coupon for PB is not available for PA
that's wery strange limitation to not allow to use discounts for pending upgrades, especially when we have proration_date attr
ok, last take about attaching coupon was incorrect - i can attach it. but in case when customer won't complete 3ds in 24h - i need to manually remove that coupon from subscription
Yes
looks like sh*t)
is there any reason to not allow discounts in case of pending upgrades?
I am not sure about that. That's a product decision that we are not involved in. Sorry.
ok, thx. i have one more idea for this, but need to check it..
ah, this wouldnt work too - wanted to try stripe plan upgrade page in billing portal, but this will not work
because we need imediatellty upgrade and it will not work in our case)
Not to add any confusion but do you need to apply the change to the subscription effective immediately or would you only need to update the future behavior of the subscription using different products/prices/etc and certain periods of time during the subscription lifecycle?