Skip to content

Commit

Permalink
Fallback to null quantity for metered price when swapping a subscript…
Browse files Browse the repository at this point in the history
…ion (#1319)
  • Loading branch information
pietrantonio91 authored Feb 8, 2022
1 parent 26eb49d commit 307b17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ public function swap($prices, array $options = [])
], [
'stripe_product' => $item->price->product,
'stripe_price' => $item->price->id,
'quantity' => $item->quantity,
'quantity' => $item->quantity ?? null,
]);
}

Expand Down

0 comments on commit 307b17e

Please sign in to comment.