#danny_best-practices
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/1465435393746010298
š Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Can you share an example so that I am on the same page?
Hi Hanzo, are you stripe employee? Maybe I can send you an subscription ID
I am yeah, feel free to share the subscription ID
Great!
Sub id: sub_1St5nbBARNjaoE1LTakSSvHP (sandbox)
Step 1
Quantity is 5, price is ā¬65.99 / month
Step 2
Update subscription and decrease quantity to 3, price will be ā¬40.99 / month scheduled on the next period
Step 3
Update subscription and increase quantity to 4, price should be ā¬53.49 / month on the next period, but its ā¬65.99 / month again
Gotcha. And for Step 2 and 3, you're using the Subscription Schedules API or the dashboard?
Just the dashboard for now, its the first time I am using stripe and I didnt know there were scheduled updates, so testing it on the dashboard
Classic
Hmm so I tested with my sample subscription and I'm seeing the correct price
On classic?
I created a Subscription for 5 x $5 price first.. Then I changed the quantity to 3
The dashboard shows me $15 as upcoming invoice
Yup, classic mode
Yes but now increase 3 to 4
Yup, that's the next phase.. Advanced time to Feb 27th and I see $20 which is correct
for 4 quantity
Hello @smoky fox, we have sent you a direct message, please check it at https://discord.com/channels/@me/1465444607037800640
- š The message has instructions on how to grant read and write access to your Stripe Dashboard for our Developer Support team, in order to help you more effectively.
But thats happening on march! Thats not what I want.
Its now 26 january. I have a subscription of 5 until 26 february. I decrease to 3 which will effect on 26 february. I will change my mind next week and increase it back to 4 instead of 3, which need to effect on 26 february and not 26 march
Gotcha. I can try that too. In the meantime, can you share the dashboard access from the DM you've received?
Approved
Thanks, looking..
hi there, taking over this thread as hanzo needs to step away. please give me a few minutes to catch up
Hi, sure! Thank you Hanzo and denton
ok, just finished watching the video. does this sound like an accurate summary of the problem? :
- Subscription has quantity of 5, for a total of 65.99 a month
- Schedule update for next period with quantity of 3, next invoice now says 40.99
- Change that scheduled update to quantity of 4, next invoice now says 65.99 a month (the price for 5)
Yes exactly. Instead of showing the price for the new updated quantity of 4, it shows the current price of 5
got it, I'll try to replicate this on my account, one moment
hmm, so far I've been unable to replicate. still looking into it
Did you update the phase or created a new one like hanzo did?
I updated the phase
Check my subscription id sub_1St5nbBARNjaoE1LTakSSvHP and you see its wrong
I also gave access to my account on hanzo's link
Are you using classic or flexible? Could this be the issue?
I saw that you were using classic so I am too. looking at your dashboard now
oh, you're using tiered pricing for the price. I didn't try that, will try now
reached out to my colleagues and I think I have a lead, still investigating
Sure! So you were able to reproduce it now?
we think what happened was that the timestamp start of the phase is offset slightly later than the billing cycle of the subscription. I can see on my side that the subscription cycles at 19:10 UTC, but the phase begins at 20:29. I'm trying to find the update that made that occur
unfortunately there are a lot of updates to this subscription schedule... have you tried seeing if it happens when you make a new, clean test subscription?
I will test now
I think it was this one https://dashboard.stripe.com/acct_1Quy3jBARNjaoE1L/test/logs/req_mMVDtNvVpQaxnM
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Same problem on new subscription: sub_1StxYGBARNjaoE1LyBR7h21r
somehow the phase timestamp is getting offset from the billing cycle of the subscription itself. comparing the timestamps in previous_attributes to what they got changed to in this event evt_1StwQGBARNjaoE1LRl1Dvflp
Previous subscriptions where made by API, this subscription is made manually and all events manually: sub_1StxciBARNjaoE1LR0G0T9aT
Do you need more information from me or can I turn off my pc?
Hi Danny, Denton needs to head out so i'll be taking over the thread.
My understanding thus far is that the reason the upcoming invoice isn't reflecting as expected is because the billing cycle anchor is offset from the phase start so the invoice you are seeing is from the billing period cycling and not the schedule change. As to why they are offset we are still investigating. We may need to do a deeper investigation internally.
Hi, so its an issue on your side and not my side?
That hasn't been confirmed yet, i'm looking over your most recent example.
Good. Im going to sleep now. Will check out tomorrow on an update! Thank you for your great suppor so far
Thanks for waiting! Our team is unable to reproduce the issue. I'll be sending a link shortly to write in to us, so that we can follow up with you on this matter.