@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $container->setParameter('cardinity_client.consumer_key', $config['consumer_key']); |
| 26 | 26 | $container->setParameter('cardinity_client.consumer_secret', $config['consumer_secret']); |
| 27 | 27 | |
| 28 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 28 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 29 | 29 | $loader->load('services.yml'); |
| 30 | 30 | } |
| 31 | 31 | } |
@@ -113,11 +113,11 @@ discard block |
||
| 113 | 113 | return $this->successResponse($payment); |
| 114 | 114 | } |
| 115 | 115 | } catch (Exception\ValidationFailed $e) { |
| 116 | - return $this->errorResponse('Payment validation failed: ' . print_r($e->getErrors(), true)); |
|
| 116 | + return $this->errorResponse('Payment validation failed: '.print_r($e->getErrors(), true)); |
|
| 117 | 117 | } catch (Exception\Declined $e) { |
| 118 | - return $this->errorResponse('Payment declined: ' . print_r($e->getErrors(), true)); |
|
| 118 | + return $this->errorResponse('Payment declined: '.print_r($e->getErrors(), true)); |
|
| 119 | 119 | } catch (Exception\Runtime $e) { |
| 120 | - return $this->errorResponse('Unexpected error occurred: ' . print_r($e->getMessage(), true)); |
|
| 120 | + return $this->errorResponse('Unexpected error occurred: '.print_r($e->getMessage(), true)); |
|
| 121 | 121 | }; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -178,9 +178,9 @@ discard block |
||
| 178 | 178 | return new RedirectResponse($this->router->generate('cardinity_client.payment_success')); |
| 179 | 179 | } |
| 180 | 180 | } catch (Exception\Declined $e) { |
| 181 | - return $this->errorResponse('Payment declined: ' . print_r($e->getErrors(), true)); |
|
| 181 | + return $this->errorResponse('Payment declined: '.print_r($e->getErrors(), true)); |
|
| 182 | 182 | } catch (Exception\Runtime $e) { |
| 183 | - return $this->errorResponse('Unexpected error occurred. ' . $e->getMessage()); |
|
| 183 | + return $this->errorResponse('Unexpected error occurred. '.$e->getMessage()); |
|
| 184 | 184 | }; |
| 185 | 185 | |
| 186 | 186 | return $this->errorResponse('Unexpected response while finalizing payment'); |