#afraz-chris_unexpected

1 messages ยท Page 1 of 1 (latest)

dense kindleBOT
#

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

neon charmBOT
ripe sandal
#

hi there! what's the subscription ID sub_xxx?

#

to be clear proration is not a mode or a setting

compact lark
#

sub_1OomjrLDBH6H9PC1qY4uR0Pr there are many others who are effected with the price change

ripe sandal
#

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

compact lark
#

Basically, I shifted customers to one pricing to another by deleting the previous one and adding new one into their subscription

ripe sandal
#

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

compact lark
#

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

ripe sandal
#

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)

compact lark
#

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

ripe sandal
#

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

compact lark
#

Let me share with you the one time php script which I created to proration_behavior:none

ripe sandal
#

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)

compact lark
#

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

ripe sandal
#

please don't post a screenshot with your livemode secret key

compact lark
#

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

ripe sandal
#

proration_behavior:"none" only makes sense when you pass it along with other parameters for actually changing the subscription

compact lark
#

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

ripe sandal
compact lark
#

Is this fine ?

ripe sandal
#

depends what you're trying to do?

#

the only actually effect of that ApI call is you added some metadata to the subscription