← 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(); |