← All changes
|
app/Modules/PaymentMethods/StripeGateway/StripeSubscriptions.php
+1
-1
1.6.4
→
1.6.5
View file →
| @@ -272,9 +272,9 @@ | ||
| 272 | 272 | return new \WP_Error('invalid_subscription', __('Invalid vendor subscription ID.', 'fluent-cart')); |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | // first check if the subscription is already canceled in Stripe |
| 276 | - $response = (new API())->getStripeObject('subscriptions/' . $vendorSubscriptionId, [], Arr::get($args, 'mode', 'live')); | |
| 276 | + $response = (new API())->getStripeObject('subscriptions/' . $vendorSubscriptionId, [], Arr::get($args, 'mode', 'current')); | |
| 277 | 277 | |
| 278 | 278 | if (is_wp_error($response)) { |
| 279 | 279 | return $response; |
| 280 | 280 | } |