1

I tried to create a Schedule subscription in my laravel app with cashier using start_date attribut but i got the following error : parameter_unknown - start_date Received unknown parameter: start_date

code :

    $stripeSubscription = $subscription->asStripeSubscription();
    $stripeSubscription->cancel_at_period_end = true;
    $stripeSubscription->start_date =  $last && $last->ends_at ?  $last->ends_at->addDay() : Carbon::now();

have you an idea to create a Schedule subscription ?

Versions :

Laravel 8
Stripe API : 2020-08-27

  • you can get start_date in stripe object return value but there is no `start_date` parameter while creating subscription https://stripe.com/docs/api/subscriptions/create – Pragnesh Chauhan Dec 10 '21 at 06:34
  • @PragneshChauhan `$stripeSubscription = $subscription->asStripeSubscription();` this line retrieve the stripe subscription object created, as yu see `cancel_at_periode_end`it works but `start_date` no – MAHA OUEGHLANI Dec 10 '21 at 07:14

0 Answers0