From 68358b40ade66a8a89f4b952d6137f42a2ff2219 Mon Sep 17 00:00:00 2001 From: igor Date: Fri, 14 Oct 2016 14:08:57 +0300 Subject: [PATCH] Set Subscription Prorate Argument when using updateQuantity --- models/SubscriptionModel.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/SubscriptionModel.php b/models/SubscriptionModel.php index 381875b..b87d306 100644 --- a/models/SubscriptionModel.php +++ b/models/SubscriptionModel.php @@ -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; }