@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function payments(string $action) |
32 | 32 | { |
33 | - return $this->render('paypal/payments/'. $action .'.html.twig'); |
|
33 | + return $this->render('paypal/payments/' . $action . '.html.twig'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -95,7 +95,7 @@ |
||
95 | 95 | public function getPaymentMethods() |
96 | 96 | { |
97 | 97 | $params = [ |
98 | - "allowedPaymentMethods" => ["paypal","card"], |
|
98 | + "allowedPaymentMethods" => ["paypal", "card"], |
|
99 | 99 | "merchantAccount" => $this->merchantAccount, |
100 | 100 | "countryCode" => $this->settingsService->getSetting('settings-customer-country'), |
101 | 101 | "shopperLocale" => $this->settingsService->getSetting('settings-customer-locale'), |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
38 | 38 | curl_close($ch); |
39 | 39 | } catch (Exception $e) { |
40 | - $this->logger->error('Error on PayPal::'.$url.' = ' . $e->getMessage()); |
|
40 | + $this->logger->error('Error on PayPal::' . $url . ' = ' . $e->getMessage()); |
|
41 | 41 | return null; |
42 | 42 | } |
43 | 43 | return ([ |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | return $this->paypalApiCall( |
81 | 81 | $requestBody, |
82 | 82 | 'https://api.sandbox.paypal.com/v1/payments/payment', |
83 | - ['PAYPAL-CLIENT-METADATA-ID: '.$fraudnetSession] |
|
83 | + ['PAYPAL-CLIENT-METADATA-ID: ' . $fraudnetSession] |
|
84 | 84 | ); |
85 | 85 | } |
86 | 86 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Service\Hyperwallet; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use DateTime; |
|
7 | 6 | use Hyperwallet\Exception\HyperwalletApiException; |
8 | 7 | use Hyperwallet\Model\AuthenticationToken; |
9 | 8 | use Hyperwallet\Model\User; |