Cashier Stripe cancelAt() not working : Received unknown parameter: cancel_at
Hello,
I have followed the documentation.
https://laravel.com/docs/11.x/billing#cancelling-subscriptions
When I use this code.
$user->subscription('default')->cancelAt($company->committed_until);
I get this error.
Received unknown parameter: cancel_at
I don't have any other information about this error.
The error message seems to say that there isn't any cancel_at field in stripe.
Would it be a bug in Cashier ? Or perhaps I do something wrong ?
Can you help me please ?
Thanks a lot.
V
I have solved the problem like this.
$company->subscription('default')->cancelAt(Carbon::parse($company->committed_until));
But I really don't understand why it works now.
cancel_at is unknown ... this would mean that no matter what value, it's unknown.
Please or to participate in this conversation.