@@ -13,12 +13,12 @@ |
||
| 13 | 13 | |
| 14 | 14 | public const HEIDELPAY_EASY_CREDIT_PAYMENT_METHOD = 'heidelpayEasyCredit'; |
| 15 | 15 | |
| 16 | - public const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME . 'Sofort'; |
|
| 17 | - public const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME . 'CreditCardSecure'; |
|
| 18 | - public const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME . 'PaypalAuthorize'; |
|
| 19 | - public const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME . 'PaypalDebit'; |
|
| 20 | - public const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME . 'Ideal'; |
|
| 21 | - public const PAYMENT_METHOD_EASY_CREDIT = self::PROVIDER_NAME . 'EasyCredit'; |
|
| 16 | + public const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME.'Sofort'; |
|
| 17 | + public const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME.'CreditCardSecure'; |
|
| 18 | + public const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME.'PaypalAuthorize'; |
|
| 19 | + public const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME.'PaypalDebit'; |
|
| 20 | + public const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME.'Ideal'; |
|
| 21 | + public const PAYMENT_METHOD_EASY_CREDIT = self::PROVIDER_NAME.'EasyCredit'; |
|
| 22 | 22 | |
| 23 | 23 | public const PAYMENT_OPTION_NEW_REGISTRATION = 'new-registration'; |
| 24 | 24 | public const PAYMENT_OPTION_EXISTING_REGISTRATION = 'existing-registration'; |
@@ -32,23 +32,23 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function provideBusinessLayerDependencies(Container $container): Container |
| 34 | 34 | { |
| 35 | - $container[static::FACADE_CURRENCY] = function (Container $container) { |
|
| 35 | + $container[static::FACADE_CURRENCY] = function(Container $container) { |
|
| 36 | 36 | return new HeidelpayToCurrencyFacadeBridge($container->getLocator()->currency()->facade()); |
| 37 | 37 | }; |
| 38 | 38 | |
| 39 | - $container[static::FACADE_MONEY] = function (Container $container) { |
|
| 39 | + $container[static::FACADE_MONEY] = function(Container $container) { |
|
| 40 | 40 | return new HeidelpayToMoneyFacadeBridge($container->getLocator()->money()->facade()); |
| 41 | 41 | }; |
| 42 | 42 | |
| 43 | - $container[self::FACADE_SALES] = function (Container $container) { |
|
| 43 | + $container[self::FACADE_SALES] = function(Container $container) { |
|
| 44 | 44 | return new HeidelpayToSalesFacadeBridge($container->getLocator()->sales()->facade()); |
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | - $container[self::QUERY_CONTAINER_SALES] = function (Container $container) { |
|
| 47 | + $container[self::QUERY_CONTAINER_SALES] = function(Container $container) { |
|
| 48 | 48 | return new HeidelpayToSalesQueryContainerBridge($container->getLocator()->sales()->queryContainer()); |
| 49 | 49 | }; |
| 50 | 50 | |
| 51 | - $container[self::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
| 51 | + $container[self::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
| 52 | 52 | return new HeidelpayToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service()); |
| 53 | 53 | }; |
| 54 | 54 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function provideCommunicationLayerDependencies(Container $container): Container |
| 64 | 64 | { |
| 65 | - $container[self::FACADE_SALES] = function (Container $container) { |
|
| 65 | + $container[self::FACADE_SALES] = function(Container $container) { |
|
| 66 | 66 | return new HeidelpayToSalesFacadeBridge($container->getLocator()->sales()->facade()); |
| 67 | 67 | }; |
| 68 | 68 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | { |
| 60 | 60 | $responseTransfer->setIsPending($apiResponse->isPending()) |
| 61 | 61 | ->setIsSuccess($apiResponse->isSuccess()) |
| 62 | - ->setIdSalesOrder((int)$apiResponse->getIdentification()->getTransactionId()) |
|
| 62 | + ->setIdSalesOrder((int) $apiResponse->getIdentification()->getTransactionId()) |
|
| 63 | 63 | ->setIsError($apiResponse->isError()) |
| 64 | 64 | ->setProcessingCode($apiResponse->getProcessing()->code) |
| 65 | 65 | ->setIdTransactionUnique($apiResponse->getIdentification()->getUniqueId()) |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class ReservationTransactionHandler implements ReservationTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_RESERVATION_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call reservation transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call reservation transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class InitializeTransactionHandler implements InitializeTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_INITIALIZE_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call initialize transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call initialize transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | class AuthorizeOnRegistrationTransactionHandler implements AuthorizeOnRegistrationTransactionHandlerInterface |
| 16 | 16 | { |
| 17 | 17 | public const ERROR_MESSAGE_AUTHORIZE_ON_REGISTRATION_TRANSACTION_NOT_SUPPORTED = |
| 18 | - 'Attempt to call authorize on registration transaction on payment method \'%s\' ' . |
|
| 18 | + 'Attempt to call authorize on registration transaction on payment method \'%s\' '. |
|
| 19 | 19 | 'that does not support it'; |
| 20 | 20 | /** |
| 21 | 21 | * @var \SprykerEco\Zed\Heidelpay\Business\Payment\Transaction\AuthorizeOnRegistrationTransactionInterface |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class FinalizeTransactionHandler implements FinalizeTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_FINALIZE_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call finalize transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call finalize transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -61,13 +61,13 @@ |
||
| 61 | 61 | ->setAmortisationText($responseAsArray[static::EASYCREDIT_AMORTISATION_TEXT]) |
| 62 | 62 | ->setPreContractionInformationUrl($responseAsArray[static::EASYCREDIT_PRECONTRACT_INFORMATION_URL]) |
| 63 | 63 | ->setAccruingInterest( |
| 64 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_ACCRUING_INTEREST]) |
|
| 64 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_ACCRUING_INTEREST]) |
|
| 65 | 65 | ) |
| 66 | 66 | ->setTotalAmount( |
| 67 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_TOTAL_AMOUNT]) |
|
| 67 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_TOTAL_AMOUNT]) |
|
| 68 | 68 | ) |
| 69 | 69 | ->setTotalOrderAmount( |
| 70 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_TOTAL_ORDER_AMOUNT]) |
|
| 70 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_TOTAL_ORDER_AMOUNT]) |
|
| 71 | 71 | ); |
| 72 | 72 | |
| 73 | 73 | $quoteTransfer->setPayment($paymentTransfer); |
@@ -30,15 +30,15 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $container = parent::provideServiceLayerDependencies($container); |
| 32 | 32 | |
| 33 | - $container[static::CLIENT_LOCALE] = function (Container $container) { |
|
| 33 | + $container[static::CLIENT_LOCALE] = function(Container $container) { |
|
| 34 | 34 | return new HeidelpayToLocaleClientBridge($container->getLocator()->locale()->client()); |
| 35 | 35 | }; |
| 36 | 36 | |
| 37 | - $container[static::CLIENT_QUOTE] = function (Container $container) { |
|
| 37 | + $container[static::CLIENT_QUOTE] = function(Container $container) { |
|
| 38 | 38 | return new HeidelpayToQuoteClientBridge($container->getLocator()->quote()->client()); |
| 39 | 39 | }; |
| 40 | 40 | |
| 41 | - $container[static::CLIENT_ZED_REQUEST] = function (Container $container) { |
|
| 41 | + $container[static::CLIENT_ZED_REQUEST] = function(Container $container) { |
|
| 42 | 42 | return $container->getLocator()->zedRequest()->client(); |
| 43 | 43 | }; |
| 44 | 44 | |