#tymm-proration
1 messages ยท Page 1 of 1 (latest)
Yes, by passing proration_behavior = none https://stripe.com/docs/api/subscriptions/create#create_subscription-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah i have tried that but it will generate invoice for the next billing cycle, i want to charge customer immediately
and then the subsequent invoice to be on the anchor date
I am not really following. You don't want proration until the billing cycle anchor, but want to charge immediately?
yeah
i have one item costs $10 per month, user subscribes at 15th of aug, billing cycle set to 1st of every month, customer need to pay $10 on 15th aug, then $10 for every subsequent 1st of month
basically no proration
The $10 paid on 15th Aug, is it for the period of 1st Sep to 1st Oct?
for 15 to 31 aug
So you want to charge full price for a portion of month?
yeah
I am trying around but looks like it's not something we supported directly
it's ok, i will think of another way to deal with this, thanks! ๐
I can think of:
- Create a subscription with proration as normal. Let's say it will charge your customer $5 for Aug15 -> Sep1
- Add another one-off Invoice to first cycle, let's say for full $10
- Calculated the prorated amount ($5) then apply a discount/coupon
For step 3, you will need to somehow intercept the first Invoice of Subscription, in 1 hour before it comes from draft to active
Some ways to do it is : using collection_method = send_invoice, creating a free trial by couple of seconds into the future, use Subscription Schedule
It's a bit tricky in step 3, since normally with collection_method = charge_automatically the Invoice will be finalized immediately and don't leave you 1 hour for editing draft