@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function register() |
17 | 17 | { |
18 | - $this->app->bind(PayPalService::class, function () { |
|
18 | + $this->app->bind(PayPalService::class, function() { |
|
19 | 19 | $paypalService = new PayPalService(Environment::getEndpoint()); |
20 | 20 | $paypalService->setAuth(Environment::getClientId(), Environment::getSecret()); |
21 | 21 | return $paypalService; |
@@ -20,17 +20,17 @@ |
||
20 | 20 | |
21 | 21 | public static function getClientId() |
22 | 22 | { |
23 | - return config('paypal.api.' . self::getCurrentEnvironment() . '.credentials.client_id'); |
|
23 | + return config('paypal.api.'.self::getCurrentEnvironment().'.credentials.client_id'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | public static function getSecret() |
27 | 27 | { |
28 | - return config('paypal.api.' . self::getCurrentEnvironment() . '.credentials.secret'); |
|
28 | + return config('paypal.api.'.self::getCurrentEnvironment().'.credentials.secret'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | public static function getEndpoint() |
32 | 32 | { |
33 | - return config('paypal.api.' . self::getCurrentEnvironment() . '.endpoint'); |
|
33 | + return config('paypal.api.'.self::getCurrentEnvironment().'.endpoint'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public static function isCheckoutActivated(): bool |