Setting custom billing period on Stripe

602 Views Asked by At

I'm using stripe to handle subscriptions on a project I'm working on and I wanted to test recurring renewal of subscriptions by reducing the billing period of subscription to few minutes but all the answers that I have found so far are to set a billing period of 1 day or reset the billing cycle from stripe dashboard.

Is there any other way to set billing cycle of 10-15 minutes so I can test recurring payments properly.

Thanks

2

There are 2 best solutions below

0
Justin Michael On

There is no way to set a billing cycle of less than a day on a Stripe Subscription. The best option is usually to update the Subscription's billing_cycle_anchor which will cause the Customer to be invoiced immediately.

1
Mohammad Shehab On

Stripe has a feature called Test Clocks that allows to move subscriptions forward in time. So you could create a subscription with a test clock, then advance the clock by one month to see exactly what happens.