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/Connect/ConnectConfig.php +3 -4 1.3.21 → 1.6.6 View file →
@@ -6,8 +6,9 @@
6 6 use FluentCart\App\Modules\PaymentMethods\Core\GatewayManager;
7 7 use FluentCart\App\Modules\PaymentMethods\StripeGateway\API\Account;
8 8 use FluentCart\App\Modules\PaymentMethods\StripeGateway\Stripe;
9 9 use FluentCart\App\Modules\PaymentMethods\StripeGateway\StripeSettingsBase;
10 +use FluentCart\App\Modules\PaymentMethods\StripeGateway\Webhook\Webhook;
10 11 use FluentCart\App\Vite;
11 12 use FluentCart\Framework\Support\Arr;
12 13
13 14 class ConnectConfig
@@ -65,9 +66,9 @@
65 66 $paypload = [
66 67 'hash' => $stripeSettings->get($mode . '_connect_hash'),
67 68 'state' => Arr::get($data, 'state', ''),
68 69 'mode' => Arr::get($data, 'mode', '') === 'live' ? 'live' : 'test',
69 - 'set_webhook' => home_url('?fluent-cart=fct_payment_listener_ipn&method=stripe'),
70 + 'set_webhook' => Webhook::getURL(),
70 71 'code' => Arr::get($data, 'code', '')
71 72 ];
72 73
73 74 $response = wp_remote_request($apiUrl, [
@@ -73,9 +74,8 @@
73 74 $response = wp_remote_request($apiUrl, [
74 75 'method' => 'POST',
75 76 'timeout' => 45,
76 77 'redirection' => 5,
77 - 'sslverify' => false,
78 78 'blocking' => true,
79 79 'body' => $paypload,
80 80 'cookies' => []
81 81 ]);
@@ -122,9 +122,9 @@
122 122 'intent' => 'connect',
123 123 'mode' => 'test',
124 124 '_wpnonce' => $testNonce
125 125 ], home_url()),
126 - 'image_url' => Vite::getAssetUrl('images/payment-methods/stripe-icon.png'),
126 + 'image_url' => Vite::getAssetUrl('images/payment-methods/stripe-icon.svg')
127 127 ],
128 128 'test_account' => self::getAccountInfo($settings, 'test'),
129 129 'live_account' => self::getAccountInfo($settings, 'live'),
130 130 'settings' => $settings
@@ -137,9 +137,8 @@
137 137 'method' => 'POST',
138 138 'timeout' => 45,
139 139 'redirection' => 5,
140 140 'httpversion' => '1.0',
141 - 'sslverify' => false,
142 141 'blocking' => true,
143 142 'headers' => array(),
144 143 'body' => $data,
145 144 'cookies' => array()