Aboud Jouda
Aboud Jouda

Reputation: 107

Stripe custom interval_count per subscription

Is there a way to customize the billing interval count per a subscription or do I have to create a different stripe price for each subscription billing cycle.

For example:

I have created a Stripe subscription plan that's 20$ per month.

$stripe->prices->create([
  'amount' => 20 * 100,
  'currency' => 'usd',
  'recurring' => ['interval' => 'month'],
]);

Let's say a user wants to subscribe for 3 months, do I need to create a different plan that charges customer every 3 months?

Upvotes: 1

Views: 1439

Answers (1)

Paul Asjes
Paul Asjes

Reputation: 5857

Yes, if you wanted a recurring Price that charges every 3 months, you'd create a new one with

'recurring' => [
  'interval' => 'month',
  'interval_count' => 3,
],

Upvotes: 2

Related Questions