← 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 { |