#KRS
1 messages · Page 1 of 1 (latest)
Problematic subscription is https://connect.stripe.com/subscriptions/sub_1M0UICI5vSu94Gk8XSGolcQF
Umm does this happen to only this Sub or you notice as a consistent behavior?
on another test account, we see it is working fine.
If in same account and different price, do you see it?
we have not come across this scenario in production account, this is the first time, so i dont know if it is common or not.
I mean, can you try in Test mode?
we dont want to use production account with test mode
Hmm, so on another account and Test mode, you don't see this issue, correct?
Hi @maiden basin I'm taking over
ok. let me know if you need any details?
Can you also send me the invoice ID which the new price is not reflected? Or did you get the invoice by using the upcoming invoice API?
we are checking the upcoming invoice
this is the problematic sub, where the subscription is updated, but the upcoming invoice is not yet updated
Hmm, are you viewing the upcoming invoice from this link? https://dashboard.stripe.com/test/customers/cus_Mkx0V7fKqSDcNP/upcoming_invoice/sub_1M1R6NIvwrjYDHRMVXP1A9vI
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yes
What I see is different from what you shared in screenshot.
i think you are confusing with working and not working subscriptions, let me explain aga.
Problematic Subscription Upcoming Invoice - https://connect.stripe.com/customers/cus_MjyEU8aEYIgtF7/upcoming_invoice/sub_1M0UICI5vSu94Gk8XSGolcQF
Working Subscription Upcoming Inovice - https://connect.stripe.com/test/customers/cus_Mkx0V7fKqSDcNP/upcoming_invoice/sub_1M1R6NIvwrjYDHRMVXP1A9vI
Snapshot I have shared is from the Problematic one
Ah, OK. Let me check again.
OK. So this subscription is managed by a subscription schedule, and in it's phase 2, the new price (e.g., price_1LytxUI5vSu94Gk8Vc7G89oR ) is missing in its phase 2 (starts on 2 Dec) 's items.
That's why the new price is absent from the upcoming invoice which is supposed to be generated on 2 Dec, same date as the phase 2 of the subscription schedule.
ok. so it is missing only in the Problematic subscription schedule and it is present in the working subscription schedule.
?
if you compare the logs between working and not working subscriptions, we are changing only the subscription and it schedule is not changed.
There's only one phase in the working subscription's schedule (sub_sched_1M1R6NIvwrjYDHRMWma0kki1), and there's no other phases that changes the subscription's prices.
so, if it is only one phase, the update will be automatic (updating the subscription will update the schdule too), but if there are multiple phases, then the update is NOT automatic. schedule's remaining phase need to be updated with the new price item?
The update happened, it's just that the price update is overridden by the subscription schedule.
I am wondering why the same override did not happen in the working subscription. the only difference is that working has only 1 phase and problematic has 2 phases.
I am questioning because i want to be clear on what needs to be done to fix the issue which should not cause any other side effects.
Here's how subscription schedule works, when the phase start_date arrive, Stripe takes phase's configuration and apply to the subscription. So in the problematic subscription, the 1st phase starts the subscription with 3 prices, and the 2nd phase updates the subscription and change the items to two prices only, and that's why you only find two prices in the upcoming invoice.
Whereas in the working subscription, the subscription will still carry 3 prices (including the updated one) since it doesn't have another phase to change the subscription prices.
here what the issue is. when the subscription schedule is created on both the cases, it is created with only 2 prices
you can check the logs
Problematic Case Request - https://connect.stripe.com/logs/req_Tkr6UGhs3gi1Lo
Working Case Request - https://connect.stripe.com/test/logs/req_5SiRAvtLjUSnqb
Now when you said the price is updated with 3 in the 1st phase in the problematic case, i would like to understand if it is done by stripe automatically because of current active phase? The future phase is not updated automatically?
no, it is not the case, you can check the schedule updated scenario in the problematic case https://connect.stripe.com/events/evt_1M2LbSI5vSu94Gk8gwNJ4CGg. here i can see the first phase is ending at Friday, 4 November 2022 18:07:02
and the 2nd phase only has 3 prices correctly
the 1st phase starts the subscription with 3 price -> this statement is wrong, it's my oversight, sorry about that.
The schedule's phase 1 items was updated from two prices to three prices because the underlying subscription is updated https://dashboard.stripe.com/test/logs/req_umyoPcaJ67pK4P
how are you sure that the phase 1 items is updated? when i check the schedule updated event, i can see it is the 2nd phase which is updated
Actually, even i am wrong. it is not the 2nd phase, it is the 3rd phase which is updated with 3 prices
I am referring to this event - https://connect.stripe.com/events/evt_1M2LbSI5vSu94Gk8gwNJ4CGg
Here is my observation, the Problematic subscription schedule has 4 phases after the recent subscription update. in which the new price is added only to the current phase which is 3rd (ending on 2nd Dec). and the 4th phase which starts on 2nd Dec is still having only 2 prices, which is the reason for the upcoming invoice to have only 2 prices. Now, my question is, when I did not perform explicit schedule update API call, stripe has updated only the schedule of the current active phase and the future phase is not modified - I expect it should affect the current phase and future phase too if stripe is modifying the current phase.
This is indeed a complicated problem. Can I get back to you later? Discord is quite busy right now.
I'll try my best to get back to you soon. If I can't solve your problem today, please tell Stripe support https://support.stripe.com/contact and tell them you have talked to us in Discord, they will forward your ticket to us.
i have dropped a mail to stripe support with your name as reference. hope there will be some conclusion soon..
Thanks. We'll follow up from there.