#kbb

1 messages · Page 1 of 1 (latest)

noble raftBOT
marsh ferry
#

hi! hmm. I suppose that's possible but really complex, you might be able to do it using Subscription Schedules

#

I think an option is

  • start the subscription normally on 18th Jan, it charges the full upcoming month
  • sometime on the 18th Feb before the current cycle ends, calculate proration yourself and charge for that manually in a one off invoice.
  • use a trial period to push the next billing date to 1st Feb

There isn't really any in-built option

proven heath
#

i see okay

#

on a related note, if customer signs on 18th feb, there a way to charge $4.5 as the prorated, then go on to renew at $10 per month starting on 1st mar?

proven heath
#

could you point out where i should set the $4.5?

marsh ferry
#

create a subscription with a billing cycle anchor in the future and a prorated invoice until the anchor takes effect

#

well in this case you don't set the amount, you set proration_behavior and we calculate it

proven heath
#

what's billing_cycle_anchor? start date of proration?

marsh ferry
#

it would be the 1st of Feb

#

like 1675209600

proven heath
marsh ferry
proven heath
#

ok

proven heath
marsh ferry
#

I think it's easiest to test it in test mode, you can look at the Upcoming Invoice to see what would happen in terms of proration

proven heath
#

okay thanks

marsh ferry
#

what's the difference between checkout and subscriptions? or are they just abstractions but calling the same API at the backend?

#

Checkout is a frontend, a hosted page for the customer to enter their details, and it creates a Subscription object in the API(after it's created you use the /v1/subscriptions API to manage it)

#

the alternative is building your own custom payment page using our Elements components and directly calling the /v1/subscriptions API

proven heath
#

i seee