| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function sandboxCredentialsCreate() |
||
| 23 | { |
||
| 24 | $request = Request::createFromGlobals(); |
||
| 25 | $clientId = $request->request->get('client_id', null); |
||
| 26 | $clientSecret = $request->request->get('client_secret', null); |
||
| 27 | if ($clientId && $clientSecret) { |
||
| 28 | $this->paypalService->getSessionService()->updateCredentials($clientId, $clientSecret); |
||
| 29 | } |
||
| 30 | return $this->redirectToRoute('paypal-index'); |
||
| 31 | } |
||
| 32 | |||
| 45 |