Alex Patel
Alex Patel

Reputation: 213

How to change the subscription period start date in stripe while creating or updating subscription

I have integrated stripe in to my application. I want to create new subscription with custom subscription start date in stripe. Eg If plan is monthly then while creating subscription i want to pass subscription startdate to the stripe and stripe will create subscription for a month from that date.

So is it possible to do? Or stripe will create new subscription from the current date only?

I have used laravel cashier..

Subscription table

$table->increments('id');
$table->integer('user_id');
$table->string('name');
$table->string('stripe_id');
$table->string('stripe_plan');
$table->integer('quantity');
$table->timestamp('trial_ends_at')->nullable();
$table->timestamp('ends_at')->nullable();
$table->timestamps();

Thanks.

Upvotes: 0

Views: 1404

Answers (1)

floatingLomas
floatingLomas

Reputation: 8747

You can use Trials for this. Here are the Cashier docs for Subscription Trials as well.

Upvotes: 0

Related Questions