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.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 trunk All 48 releases
← All changes | app/Modules/PaymentMethods/PayPalGateway/API/PayPalPartnerRenderer.php +2 -5 1.3.21 → 1.6.5 View file →
@@ -2,12 +2,12 @@
2 2
3 3 namespace FluentCart\App\Modules\PaymentMethods\PayPalGateway\API;
4 4
5 5 use FluentCart\App\Helpers\Helper;
6 +use FluentCart\App\Modules\PaymentMethods\PayPalGateway\ConnectConfig;
6 7 use FluentCart\App\Services\FrontendView;
7 8 use FluentCart\App\Vite;
8 9 use FluentCart\Framework\Foundation\App;
9 -use FluentCart\Framework\Support\Arr;
10 10
11 11 class PayPalPartnerRenderer
12 12 {
13 13
@@ -43,12 +43,9 @@
43 43 }
44 44
45 45 public function template($data)
46 46 {
47 - $mode = Arr::get($data, 'mode', false);
48 - if (!$mode) {
49 - return;
50 - }
47 + $mode = ConnectConfig::validateConnectRequest($data, 'connect');
51 48 $paypalPartner = new PayPalPartner($mode);
52 49
53 50
54 51 try {