diff --git a/src/Gateways/Gp3DSProvider.php b/src/Gateways/Gp3DSProvider.php index 95a2d700..7b8bb057 100644 --- a/src/Gateways/Gp3DSProvider.php +++ b/src/Gateways/Gp3DSProvider.php @@ -162,7 +162,7 @@ public function processSecure3d(Secure3dBuilder $builder) $request['card_detail'] = $this->maybeSetKey($request['card_detail'], 'full_name', $cardData->cardHolderName); if (!empty($cardData->cardHolderName)) { - $names = explode(' ', $cardData->cardHolderName); + $names = explode(' ', $cardData->cardHolderName, 2); if (count($names) >= 1) { $request['card_detail'] = $this->maybeSetKey($request['card_detail'], 'first_name', $names[0]); } diff --git a/src/Gateways/RealexConnector.php b/src/Gateways/RealexConnector.php index 5080c8a6..98eb78d4 100644 --- a/src/Gateways/RealexConnector.php +++ b/src/Gateways/RealexConnector.php @@ -1166,6 +1166,9 @@ protected function mapAuthRequestType(AuthorizationBuilder $builder) 'The selected gateway does not support this transaction type.' ); case TransactionType::VERIFY_ENROLLED: + if ($builder->paymentMethod instanceof RecurringPaymentMethod) { + return 'realvault-3ds-verifyenrolled'; + } return '3ds-verifyenrolled'; default: return 'unknown'; diff --git a/src/ServicesContainer.php b/src/ServicesContainer.php index 4c85cc32..4d7ebf03 100644 --- a/src/ServicesContainer.php +++ b/src/ServicesContainer.php @@ -49,7 +49,7 @@ public static function configure(ServicesConfig $config, $configName = 'default' self::configureService($config->gatewayConfig, $configName); } - public static function configureService($config, string $configName = 'default') + public static function configureService($config, $configName = 'default') { if ($config != null) { if (!($config->validated)) {