#afraz-chris_unexpected
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/1217805819886960720
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there! what's the subscription ID sub_xxx?
to be clear proration is not a mode or a setting
sub_1OomjrLDBH6H9PC1qY4uR0Pr there are many others who are effected with the price change
it's an option, you need to set proration_behavior:"none" on each request you make if you want it to never happen
it's not like a setting you set on the Subscription object, it's an option that has to be set on each update
Basically, I shifted customers to one pricing to another by deleting the previous one and adding new one into their subscription
makes sense
where exactly are you seeing a proration item for that subscription? Any screenshot or ID for example? I'm not seeing one immediately and I see you pass proration_behavior:"none on the requests involved.
though I'm super confused by what some of your requests are doing, you send an empty update with nothing except "proration_behavior": "none", which doesn't actually do anything
Ah let me explain
This is my Client so I thought if I just set "proration_behavior": "none" in the api it will turn it off
yeah that's what I explained earlier though
it's not a setting or a mode, it's an option you need to set on each request you make(the default is to always prorate which is what happens if you don't pass proration_behavior:none on the specific request that is changing the subscription items)
So the customers are getting automatically charged due to subscriptions
So how can I pass proration_behavior:none?
or can you tell me how can I pass proration_behavior:none in upcoming billing
well you're already doing it in your PHP code since it's in some of the requests you make, so I think you're already familiar with it?
if you have some specific code you use to update the subscription you just pass it as a parameter to that, I can look at if if you want
Let me share with you the one time php script which I created to proration_behavior:none
before that
can you clarify you understand what I've mentioned a couple of times about "it's not a setting or a mode, it's an option you need to set on each request you make" ? ๐
because that's at the core of it and why a "* one time* php script which I created to proration_behavior:none" makes no sense
this also has zero to do with the Dashboard if that's what your real question is about
on the Dashboard there's a checkbox or UI or whatever to select to change proration behavior when you edit subscriptions. AFAIK you can't make that have your own defined default. If you edit subscriptions through the API(remember you are asking me this on a Discord server explicitly for developers writing code), you pass proration_behavior:"none" as part of the params on each call)
Okay so my script will do nothing
Okay Karl I understand that I need to send proration_behavior with every request for it to work
please don't post a screenshot with your livemode secret key
But the only thing, I am confused is when you say "every request" what does that mean? Stripe charges customers automatically without doing anything with my php code
yep
proration_behavior:"none" only makes sense when you pass it along with other parameters for actually changing the subscription
So for this to work I need to pass some other parameters?
Can I do something like this create a new price of same value update the subscription by adding this new price and sending proration_behavior:"none" as well using a script?
I am sorry if I am sounding dumb
just lots of pressure behind
sure, you ceratinly can
https://docs.stripe.com/billing/subscriptions/upgrade-downgrade is how you change the Price on a Subscription to another Price
Is this fine ?