@@ -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'; |
@@ -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 | /** |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $heidelpayRequestTransfer->setCustomerPurchase( |
| 79 | 79 | (new HeidelpayCustomerPurchaseTransfer()) |
| 80 | 80 | ->setAmount($this->getOrderGrandTotalInDecimal($orderTransfer)) |
| 81 | - ->setIdOrder((string)$orderTransfer->getIdSalesOrder()) |
|
| 81 | + ->setIdOrder((string) $orderTransfer->getIdSalesOrder()) |
|
| 82 | 82 | ); |
| 83 | 83 | |
| 84 | 84 | return $heidelpayRequestTransfer; |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | ->getOptionsList(); |
| 151 | 151 | |
| 152 | 152 | foreach ($paymentOptionsList as $optionTransfer) { |
| 153 | - $paymentOptions[static::PAYMENT_OPTION_TRANSLATION_PREFIX . $optionTransfer->getCode()] = |
|
| 153 | + $paymentOptions[static::PAYMENT_OPTION_TRANSLATION_PREFIX.$optionTransfer->getCode()] = |
|
| 154 | 154 | $optionTransfer->getCode(); |
| 155 | 155 | } |
| 156 | 156 | |