We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When swapping a subscripton price with a metered price it retrieve this notice:
Stripe Notice: Undefined property of Stripe\SubscriptionItem instance: quantity
I figured out this should be the problem line:
cashier-stripe/src/Subscription.php
Line 695 in 1a80ccb
As I've read in other issues and in docs metered prices must have "null" as quantity value.
So I solved this issue with a simple (similar to this issue):
'quantity' => $item->quantity ?? null
Here's my pull request.
$user->subscription()->swap('price_meteredPriceID');
The text was updated successfully, but these errors were encountered:
Thanks for the PR!
Sorry, something went wrong.
No branches or pull requests
Description:
When swapping a subscripton price with a metered price it retrieve this notice:
I figured out this should be the problem line:
cashier-stripe/src/Subscription.php
Line 695 in 1a80ccb
As I've read in other issues and in docs metered prices must have "null" as quantity value.
So I solved this issue with a simple (similar to this issue):
'quantity' => $item->quantity ?? null
Here's my pull request.
Steps To Reproduce:
$user->subscription()->swap('price_meteredPriceID');
The text was updated successfully, but these errors were encountered: