#sebastian-subscription-proration

1 messages ยท Page 1 of 1 (latest)

wary ingotBOT
glacial sand
#

Wow, that's a wall of text. Give me a minute or two to catch up

pine barn
#

No problem, take your time

#

thank you

glacial sand
pine barn
#

Sure, please give me a couple of minutes I'll look into it

#

Sorry for this if it may be a dummy question, I have the log you need, is ok/safe if I share this with you throught this thread? or maybe should I share it by DM?

glacial sand
#

You can just paste the request ID req_XXXX in here. It's safe since only someone who could access your account could use it anyway

#

To be clear, I don't need to the full link

pine barn
#

Sure

#

req_rxUHInUfJkIFOV

glacial sand
#

perfect, thanks

#

Okay so in this case the price ID you provide in items is your one-off lifetime subscription price, correct?

pine barn
#

The price ID I provide in items is the zero cost price which is recurrent

glacial sand
#

And you don't want the charge the user that price every year?

pine barn
#

Only one time (the first invoice)

glacial sand
#

That price ID corresponds to a price with a 1/year cycle and an amount of $49.99

#

Which is why the Subscription object has a recurring price of $49.99

pine barn
#

Man I am so sorry

#

I gave you the incorrect req_id

glacial sand
#

No worries, that's why we're here ๐Ÿ™‚

pine barn
#

req_1C3VJE6CdIgBLv

#

Is this one ๐Ÿ‘†

#

I apologize

glacial sand
#

Okay I can see the subscription is updated to use a price of $0

pine barn
#

correct

glacial sand
#

And you've added the one-off price of $99

#

So what part of this is not behaving as you expect?

pine barn
#

if you look at the subscription you will see that the real price added on the "add_invoice_items" is shown as a pending invoice and it seems not to be charged instantly

#

I would like to know if after this subscription update is possible to charge the user immediately

glacial sand
#

Sure, that just depends on the Update call

#

The default is to pro-rate any price change and apply new one-off charges to the next scheduled invoice

pine barn
#

That seems to be a good approach, Snufkin, could you give me 5/8 min so I try to change this on my API call and then come back here with you?

glacial sand
#

Sure thing. Take your time. If it isn't me there will be someone from Stripe here to help. (we work in shifts)

pine barn
#

Sure, thank you

ancient lynx
#

sebastian-subscription-proration

pine barn
#

It seems to be working good!, thank you, however I have another issue raising from this, some of the past plans of the user may include a discount coupon on it, is possible to remove all the coupon benefits from the subscription before making the plan change?

#

because it is applying this coupon discount to the 99 USD real price and we will not be allowing that for the users

ancient lynx
#

You can unset the coupon by passing coupon: '' when updating the Subscription, try it in Test mode

pine barn
#

Thank you koopajah, let me try this in a moment ๐Ÿ™Œ