PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
← All changes | app/Modules/PaymentMethods/StripeGateway/SwitchCustomerMethod.php +2 -4 1.5.3 → 1.6.5 View file →
@@ -204,9 +204,8 @@
204 204
205 205 private function updateSubscription($subscriptionId, $newSub, $plan, $customerId)
206 206 {
207 207 $subscriptionModel = Subscription::query()->where('id', $subscriptionId)->first();
208 - $config = $subscriptionModel->config ?: [];
209 208
210 209 $subscriptionModel->update([
211 210 'vendor_subscription_id' => Arr::get($newSub, 'id'),
212 211 'vendor_plan_id' => Arr::get($newSub, 'id'),
@@ -212,12 +211,11 @@
212 211 'vendor_plan_id' => Arr::get($newSub, 'id'),
213 212 'current_payment_method' => 'stripe',
214 213 'vendor_customer_id' => $customerId,
215 214 'status' => StripeHelper::transformSubscriptionStatus($newSub),
216 - 'config' => array_merge($config, [
217 - 'is_trial_days_simulated' => 'yes'
218 - ])
219 215 ]);
216 +
217 + $subscriptionModel->mergeConfig(['is_trial_days_simulated' => 'yes']);
220 218 }
221 219
222 220 private function updateBillingInfo($subscriptionId, $pm)
223 221 {