#kemal
1 messages · Page 1 of 1 (latest)
Hi 👋
Proration behavior is not set permanently on a Subscription but must be passed in for each modification to the subscription. Can you share the invoice ID where the unexpected proration occurred?
in_1M21mjLfrGdd2APcO1wWLHf8
so it creates payment with; £50.97 , but i was expecting to create £51.25
it is production data BTW
You set the billing cycle anchor and cancels at to be less than 1 year, which is what the price specifies.
However, we also state that cancel_at will not create prorations if you specify not to. 🤔
Here is case we can to achieve: user start membership on 07/11/2022 and first payment date is: 09/11//2022 and cancel at : 07/11/2023
so basically I want to charge whole amount from start date to cancellation date
which is £51.25
👋
Snufkin had to step away
Taking a look
Okay so yeah this is expected for using cancel_at for the future on Sub creation. See: https://stripe.com/docs/api/subscriptions/create
We specifically call this out that it will always cause proration
in this is api thinking membership started at 09/11//2022 and ends at 07/11/2023 ?
Yes that's correct
Hmm you set the billing_cycle_anchor to 9/11 though
Why are you using billing_cycle_anchor at all here?
so basically , I want to start subscription on 07/11/2022 , take the payment 09/11/2022 and cancel at 07/11/2023
and want to take whole amount
If you want the Sub to start when you create it
Oh you don't want to take payment until 9/11
no because customer is not available for 2 days
In that case you want to use a Subscription Schedule with a future start_date
but we want to start subsc.
You can't really start the Sub and not take payment. Unless you want to give them a trial period
Can I add trial days to charging cost ?
so like , trial cost: £0.28 + proration: £50.97 = 51.25
possible ?
You could do this if you want... but it is pretty fickle as it relies on correct calculation of proration
You would do so by adding an invoice item on Sub creation: https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items