@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | HeidelpayDirectDebitRegistrationTransfer $directDebitRegistrationTransfer |
| 49 | 49 | ): HeidelpayDirectDebitRegistrationTransfer { |
| 50 | 50 | return $this->getTransactionHandler()->handleTransaction( |
| 51 | - function () use ($directDebitRegistrationTransfer) { |
|
| 51 | + function() use ($directDebitRegistrationTransfer) { |
|
| 52 | 52 | return $this->savePaymentHeidelpayDirectDebitRegistrationEntity($directDebitRegistrationTransfer); |
| 53 | 53 | } |
| 54 | 54 | ); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | public function updateDirectDebitRegistration(QuoteTransfer $quoteTransfer): HeidelpayDirectDebitRegistrationTransfer |
| 63 | 63 | { |
| 64 | 64 | return $this->getTransactionHandler()->handleTransaction( |
| 65 | - function () use ($quoteTransfer) { |
|
| 65 | + function() use ($quoteTransfer) { |
|
| 66 | 66 | $directDebitRegistrationTransfer = $this->getDirectDebitRegistration($quoteTransfer); |
| 67 | 67 | |
| 68 | 68 | if ($directDebitRegistrationTransfer->getIdDirectDebitRegistration() === null) { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | protected function getRegistrationId(Request $request): int |
| 173 | 173 | { |
| 174 | - return (int)$request->get(static::REQUEST_PARAM_REGISTRATION_ID); |
|
| 174 | + return (int) $request->get(static::REQUEST_PARAM_REGISTRATION_ID); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | */ |
| 239 | 239 | public function filterResponseParameters(array $responseArray): array |
| 240 | 240 | { |
| 241 | - return array_filter($responseArray, function ($key) { |
|
| 241 | + return array_filter($responseArray, function($key) { |
|
| 242 | 242 | return !preg_match(static::RESPONSE_PARAMETERS_FILTER_PATTERN, $key); |
| 243 | 243 | }, ARRAY_FILTER_USE_KEY); |
| 244 | 244 | } |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $responseTransfer |
| 61 | 61 | ->setIsPending($apiResponse->isPending()) |
| 62 | 62 | ->setIsSuccess($apiResponse->isSuccess()) |
| 63 | - ->setIdSalesOrder((int)$apiResponse->getIdentification()->getTransactionId()) |
|
| 63 | + ->setIdSalesOrder((int) $apiResponse->getIdentification()->getTransactionId()) |
|
| 64 | 64 | ->setIsError($apiResponse->isError()) |
| 65 | 65 | ->setProcessingCode($apiResponse->getProcessing()->code) |
| 66 | 66 | ->setIdTransactionUnique($apiResponse->getIdentification()->getUniqueId()) |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class DebitOnRegistrationTransactionHandler implements DebitOnRegistrationTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_DEBIT_ON_REGISTRATION_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call debit on registration transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call debit on registration transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class RefundTransactionHandler implements RefundTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_REFUND_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call refund transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call refund transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -13,14 +13,14 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public const PROVIDER_NAME = 'heidelpay'; |
| 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'; |
|
| 22 | - public const PAYMENT_METHOD_INVOICE_SECURED_B2C = self::PROVIDER_NAME . 'InvoiceSecuredB2c'; |
|
| 23 | - public const PAYMENT_METHOD_DIRECT_DEBIT = self::PROVIDER_NAME . 'DirectDebit'; |
|
| 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 | + public const PAYMENT_METHOD_INVOICE_SECURED_B2C = self::PROVIDER_NAME.'InvoiceSecuredB2c'; |
|
| 23 | + public const PAYMENT_METHOD_DIRECT_DEBIT = self::PROVIDER_NAME.'DirectDebit'; |
|
| 24 | 24 | |
| 25 | 25 | public const PAYMENT_OPTION_NEW_REGISTRATION = 'new-registration'; |
| 26 | 26 | public const PAYMENT_OPTION_EXISTING_REGISTRATION = 'existing-registration'; |