#mikemturner-subscription-test

1 messages · Page 1 of 1 (latest)

ember galleon
#

hey there, what exactly are you trying to test?

iron wind
#

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

ember galleon
#

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?

iron wind
#

How do I hit the cycle end date? I want to perform actions on invoice.created hook etc

ember galleon
#

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

iron wind
#

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?

ember galleon
#

Does that cover the use case you're describing?

iron wind
#

No because the flat fee is per unit. I need a flat fee per range

#

Unless I have done something else

#

let me check again

#

No I am wrong. Not sure what I did last time but it gave a flat fee for all unites. Just created a new product and its working fine. Thanks you