#mikemturner-subscription-test
1 messages · Page 1 of 1 (latest)
Everything So I want to create a sub, add/remove units or report usage for metered hit the payment date and charge, receive emails etc
well you can do almost all of that in test mode just fine, with the exception of emails which are not sent in test mode
so where are you having trouble?
How do I hit the cycle end date? I want to perform actions on invoice.created hook etc
You need to wait for it to arrive, there's no way to specifically "fast forward" the renewal date. Usually we'd recommend testing either with a shorter interval (eg daily price instead of monthly), or using a short trial to trigger a billing cycle rollover
the trial approach would conflict with metered usage in your case, because usage during a trial is free
so using a daily billing cycle is likely going to be the best approach here
OK thanks
One more question...
On a different project I need give the illusion of packages with auto upgrade feature. I am thinking of having a tiered approach where each unit will represent a package, ie. 1 unit is package 1, 2 units is package 2, so if they go over 10 properties the app will increment the unit. this approach works with undesirable data on the invoices so I thought I would specify the properties within the tiers, ie. 1-10 props is 0 per unit and a base price of £10, if they have 9 properties the base price is £90, my question is, is there a way to have 1 "base" price for the whole 10 properties?
Yep, i believe you can achieve exactly what you're looking for using tiered pricing. for example: https://stripe.com/docs/billing/subscriptions/tiers#adding-flat-fees
Learn how to change invoice amounts based on how much your customers buy.
Does that cover the use case you're describing?