PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.6
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.6
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/Webhook/IPN.php +2 -2 1.6.4 → 1.6.6 View file →
@@ -53,9 +53,9 @@
53 53
54 54 if (empty($refunds)) {
55 55 $chargeId = Arr::get($charge, 'id', '');
56 56 if ($chargeId) {
57 - $refundsResponse = (new API())->getStripeObject('charges/' . $chargeId . '/refunds');
57 + $refundsResponse = (new API())->getStripeObject('charges/' . $chargeId . '/refunds', [], StripeHelper::modeFromLivemode(isset($event->livemode) ? (bool)$event->livemode : null));
58 58 if (!is_wp_error($refundsResponse)) {
59 59 $refunds = Arr::get($refundsResponse, 'data', []);
60 60 }
61 61 }
@@ -406,9 +406,9 @@
406 406 $event = Arr::get($data, 'event');
407 407 $order = Arr::get($data, 'order');
408 408 $invoice = $event->data->object;
409 409
410 - $invoice = (new API())->getStripeObject('invoices/' . $invoice->id);
410 + $invoice = (new API())->getStripeObject('invoices/' . $invoice->id, [], StripeHelper::modeFromLivemode(isset($event->livemode) ? (bool)$event->livemode : null));
411 411
412 412 $vendorSubscriptionId = Arr::get($invoice, 'subscription', null)
413 413 ?: Arr::get($invoice, 'parent.subscription_details.subscription', null);
414 414