Skip to content

Commit

Permalink
Set Subscription Prorate Argument when using updateQuantity
Browse files Browse the repository at this point in the history
  • Loading branch information
igor committed Oct 14, 2016
1 parent 2e65f6d commit 68358b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/SubscriptionModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,12 @@ public function updateQuantity($quantity)
{
$subscription = $this->asStripeSubscription();
$subscription->quantity = $quantity;
$subscription->prorate = $this->prorate;
$subscription->save();

$this->quantity = $quantity;
$this->save();

return $this;
}

Expand Down

0 comments on commit 68358b4

Please sign in to comment.