#danny_best-practices

1 messages Ā· Page 1 of 1 (latest)

gilded parcelBOT
#

šŸ‘‹ 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.

rigid grail
#

Hello
Can you share an example so that I am on the same page?

smoky fox
#

Hi Hanzo, are you stripe employee? Maybe I can send you an subscription ID

rigid grail
#

I am yeah, feel free to share the subscription ID

smoky fox
#

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

rigid grail
#

Gotcha. And for Step 2 and 3, you're using the Subscription Schedules API or the dashboard?

smoky fox
#

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

rigid grail
#

Gotcha. Let me take a look

#

Are you using flexible billing mode or classic?

smoky fox
#

Classic

rigid grail
#

Hmm so I tested with my sample subscription and I'm seeing the correct price

smoky fox
#

On classic?

rigid grail
#

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

smoky fox
#

Yes but now increase 3 to 4

rigid grail
#

Yup, that's the next phase.. Advanced time to Feb 27th and I see $20 which is correct

#

for 4 quantity

gilded parcelBOT
#

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.
smoky fox
#

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

rigid grail
#

Gotcha. I can try that too. In the meantime, can you share the dashboard access from the DM you've received?

smoky fox
#

Approved

rigid grail
#

Thanks, looking..

gilded parcelBOT
lucid apex
#

hi there, taking over this thread as hanzo needs to step away. please give me a few minutes to catch up

smoky fox
#

Hi, sure! Thank you Hanzo and denton

lucid apex
#

ok, just finished watching the video. does this sound like an accurate summary of the problem? :

  1. Subscription has quantity of 5, for a total of 65.99 a month
  2. Schedule update for next period with quantity of 3, next invoice now says 40.99
  3. Change that scheduled update to quantity of 4, next invoice now says 65.99 a month (the price for 5)
smoky fox
#

Yes exactly. Instead of showing the price for the new updated quantity of 4, it shows the current price of 5

lucid apex
#

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

smoky fox
#

Did you update the phase or created a new one like hanzo did?

lucid apex
#

I updated the phase

smoky fox
#

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?

lucid apex
#

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

smoky fox
#

Sure! So you were able to reproduce it now?

lucid apex
#

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?

smoky fox
#

I will test now

lucid apex
smoky fox
#

Same problem on new subscription: sub_1StxYGBARNjaoE1LyBR7h21r

gilded parcelBOT
lucid apex
#

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

smoky fox
#

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?

plucky ether
#

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.

smoky fox
#

Hi, so its an issue on your side and not my side?

plucky ether
#

That hasn't been confirmed yet, i'm looking over your most recent example.

smoky fox
#

Good. Im going to sleep now. Will check out tomorrow on an update! Thank you for your great suppor so far

gilded parcelBOT
merry coral
#

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.