| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | public function register() |
||
| 17 | { |
||
| 18 | $this->app->bind(PayPalService::class, function () { |
||
| 19 | $paypalService = new PayPalService(Environment::getEndpoint()); |
||
| 20 | $paypalService->setAuth(Environment::getClientId(), Environment::getSecret()); |
||
| 21 | |||
| 22 | if (Environment::isHandlerEnabled()) { |
||
| 23 | $handler = Environment::getHandler(); |
||
| 24 | $paypalService->withHandler(new $handler()); |
||
|
|
|||
| 25 | } |
||
| 26 | |||
| 27 | return $paypalService; |
||
| 28 | }); |
||
| 31 |