#Aspecs
1 messages ยท Page 1 of 1 (latest)
Hi there, you can set subscription_cancel.mode to immediately (https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_cancel-mode) if you wish to cancel the subscription immediately.
Ah I see! Thanks very much, find my self jumping around the docs quite a bit! Good thing tho ๐
No problem ๐
It depends on how soon the metered usage reaches $30
Do you mind elaborating?
For metered usage based billing, your application needs to report the usage information through API (https://stripe.com/docs/products-prices/pricing-models#reporting-usage). Once the aggregated metered usage has reached the threshold (i.e., $30), it will be billed immediately.
I'm going to purge my test data and start over, however, this is what I am doing already and it hasn't been billed in about 20 minutes
Do you have the subscription ID?
I've just purged it, i'll start over and if it still occurring i'll post it here ๐
sub_1MN7CYEK8UKsRo17pzljtVYv
^ Test Mode
Have you created any usage reports? because the metered usage is currently 0.
It's gone through at the moment, was about 4 minutes delayed. Is that representative of production mode?
This one is taking longer, if you look at the same subscription. It's been about 10 minutes and the threshold is double over and it hasn't created an invoice
It's not very immediate ๐
Thanks for waiting, yes this is one of the caveats that you need to take note (https://stripe.com/docs/products-prices/pricing-models#limitations)
invoices might not be issued at the exact moment a specified threshold is reached. Invoiced amounts or usage might be slightly higher than the specified thresholds.```
Thanks, I might be better off generating the invoice myself on my end