@@ -22,6 +22,6 @@ |
||
| 22 | 22 | ->requireCustomer() |
| 23 | 23 | ->getTotals(); |
| 24 | 24 | |
| 25 | - return sha1($quoteTransfer->getCustomer()->getEmail() . $quoteTransfer->getTotals()->getHash()); |
|
| 25 | + return sha1($quoteTransfer->getCustomer()->getEmail().$quoteTransfer->getTotals()->getHash()); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | { |
| 12 | 12 | const PROVIDER_NAME = 'heidelpay'; |
| 13 | 13 | |
| 14 | - const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME . 'Sofort'; |
|
| 15 | - const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME . 'CreditCardSecure'; |
|
| 16 | - const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME . 'PaypalAuthorize'; |
|
| 17 | - const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME . 'PaypalDebit'; |
|
| 18 | - const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME . 'Ideal'; |
|
| 14 | + const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME.'Sofort'; |
|
| 15 | + const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME.'CreditCardSecure'; |
|
| 16 | + const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME.'PaypalAuthorize'; |
|
| 17 | + const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME.'PaypalDebit'; |
|
| 18 | + const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME.'Ideal'; |
|
| 19 | 19 | |
| 20 | 20 | const PAYMENT_OPTION_NEW_REGISTRATION = 'new-registration'; |
| 21 | 21 | const PAYMENT_OPTION_EXISTING_REGISTRATION = 'existing-registration'; |
@@ -28,15 +28,15 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function provideServiceLayerDependencies(Container $container) |
| 30 | 30 | { |
| 31 | - $container[static::CLIENT_LOCALE] = function (Container $container) { |
|
| 31 | + $container[static::CLIENT_LOCALE] = function(Container $container) { |
|
| 32 | 32 | return new HeidelpayToLocaleBridge($container->getLocator()->locale()->client()); |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | - $container[static::CLIENT_QUOTE] = function (Container $container) { |
|
| 35 | + $container[static::CLIENT_QUOTE] = function(Container $container) { |
|
| 36 | 36 | return new HeidelpayToQuoteBridge($container->getLocator()->quote()->client()); |
| 37 | 37 | }; |
| 38 | 38 | |
| 39 | - $container[static::CLIENT_ZED_REQUEST] = function (Container $container) { |
|
| 39 | + $container[static::CLIENT_ZED_REQUEST] = function(Container $container) { |
|
| 40 | 40 | return $container->getLocator()->zedRequest()->client(); |
| 41 | 41 | }; |
| 42 | 42 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected function getRequestParameterObject($parameterGroup, Response $heidelpayResponse) |
| 69 | 69 | { |
| 70 | - $getParameterMethod = 'get' . ucfirst($parameterGroup); |
|
| 70 | + $getParameterMethod = 'get'.ucfirst($parameterGroup); |
|
| 71 | 71 | |
| 72 | 72 | if (!method_exists($heidelpayResponse, $getParameterMethod)) { |
| 73 | 73 | return null; |
@@ -97,6 +97,6 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | protected function getTransactionPayloadArray($transactionPayload) |
| 99 | 99 | { |
| 100 | - return (array)$this->utilEncoding->decodeJson($transactionPayload, true); |
|
| 100 | + return (array) $this->utilEncoding->decodeJson($transactionPayload, true); |
|
| 101 | 101 | } |
| 102 | 102 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | { |
| 59 | 59 | $responseTransfer->setIsPending($apiResponse->isPending()) |
| 60 | 60 | ->setIsSuccess($apiResponse->isSuccess()) |
| 61 | - ->setIdSalesOrder((int)$apiResponse->getIdentification()->getTransactionId()) |
|
| 61 | + ->setIdSalesOrder((int) $apiResponse->getIdentification()->getTransactionId()) |
|
| 62 | 62 | ->setIsError($apiResponse->isError()) |
| 63 | 63 | ->setIdPaymentReference($apiResponse->getPaymentReferenceId()) |
| 64 | 64 | ->setProcessingCode($apiResponse->getProcessing()->code) |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | class DebitTransactionHandler implements DebitTransactionHandlerInterface |
| 16 | 16 | { |
| 17 | 17 | const ERROR_MESSAGE_DEBIT_TRANSACTION_NOT_SUPPORTED = |
| 18 | - 'Attempt to call debit transaction on payment method \'%s\' ' . |
|
| 18 | + 'Attempt to call debit transaction on payment method \'%s\' '. |
|
| 19 | 19 | 'that does not support it'; |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | class CaptureTransactionHandler implements CaptureTransactionHandlerInterface |
| 16 | 16 | { |
| 17 | 17 | const ERROR_MESSAGE_CAPTURE_TRANSACTION_NOT_SUPPORTED = |
| 18 | - 'Attempt to call capture transaction on payment method \'%s\' ' . |
|
| 18 | + 'Attempt to call capture transaction on payment method \'%s\' '. |
|
| 19 | 19 | 'that does not support it'; |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | class AuthorizeTransactionHandler implements AuthorizeTransactionHandlerInterface |
| 16 | 16 | { |
| 17 | 17 | const ERROR_MESSAGE_AUTHORIZE_TRANSACTION_NOT_SUPPORTED = |
| 18 | - 'Attempt to call authorize transaction on payment method \'%s\' ' . |
|
| 18 | + 'Attempt to call authorize transaction on payment method \'%s\' '. |
|
| 19 | 19 | 'that does not support it'; |
| 20 | 20 | /** |
| 21 | 21 | * @var \SprykerEco\Zed\Heidelpay\Business\Payment\Transaction\AuthorizeTransactionInterface |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | class ExternalResponseTransactionHandler implements ExternalResponseTransactionHandlerInterface |
| 19 | 19 | { |
| 20 | 20 | const ERROR_MESSAGE_EXTERNAL_RESPONSE_TRANSACTION_NOT_SUPPORTED = |
| 21 | - 'Attempt to call external response transaction on payment method \'%s\' ' . |
|
| 21 | + 'Attempt to call external response transaction on payment method \'%s\' '. |
|
| 22 | 22 | 'that does not support it'; |
| 23 | 23 | |
| 24 | 24 | /** |