Quoting Laravel Cashier documentation:
If you would like to offer trial periods to your customers while still collecting payment method information up front, You should use the trialDays method when creating your subscriptions.
Assuming I want to add a 30 days trial period to my subscriptions, I can create a subscription with this code:
$user->newSubscription('main', 'monthly')
->trialDays(30)
->create($stripeToken);
As a Stripe user, should I add a trial period in Stripe too?
I'm not sure to understand the logic of Laravel Cashier here. It seems redundant to declare something at two different places.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire