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/UpdateCustomerPaymentMethod.php +2 -1 1.6.0 → 1.6.5 View file →
@@ -33,11 +33,12 @@
33 33 $localSubscription = Subscription::query()->find($subscriptionId);
34 34
35 35 if ($localSubscription instanceof Subscription && $localSubscription->isSystem()) {
36 36 $this->updateSystemPaymentMethod($localSubscription, $newPaymentMethod, $verificationStatus);
37 + return;
37 38 }
38 39
39 - return;
40 + throw new \Exception(esc_html__('This subscription has no vendor subscription to update.', 'fluent-cart'), 423);
40 41 }
41 42
42 43 // get customer id
43 44 $subscription = Subscription::query()->where('vendor_subscription_id', $vendorSubscriptionId)->first();