#tymm-proration

1 messages ยท Page 1 of 1 (latest)

shut gale
outer jungle
#

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

shut gale
#

I am not really following. You don't want proration until the billing cycle anchor, but want to charge immediately?

outer jungle
#

yeah

shut gale
#

Can you give an example?

#

What amount to charge is that?

outer jungle
#

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

shut gale
#

The $10 paid on 15th Aug, is it for the period of 1st Sep to 1st Oct?

outer jungle
#

for 15 to 31 aug

shut gale
#

So you want to charge full price for a portion of month?

outer jungle
#

yeah

shut gale
#

I am trying around but looks like it's not something we supported directly

outer jungle
#

it's ok, i will think of another way to deal with this, thanks! ๐Ÿ™‚

shut gale
#

I can think of:

  1. Create a subscription with proration as normal. Let's say it will charge your customer $5 for Aug15 -> Sep1
  2. Add another one-off Invoice to first cycle, let's say for full $10
  3. 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