Skip to content

Commit

Permalink
Migrating allow3DS2 to nativeThreeDS on /payments request
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboo-singhvi committed Dec 31, 2024
1 parent 2ac5a32 commit f9734ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Gateway/Request/RecurringVaultDataBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ public function build(array $buildSubject): array
$requestBody = $this->stateData->getStateData($order->getQuoteId());
}

if ($paymentMethod->getCode() === AdyenCcConfigProvider::CC_VAULT_CODE) {
/*
* `allow3DS: true` flag is required to trigger the native 3DS challenge.
* Otherwise, shopper will be redirected to the issuer for challenge.
*/
$requestBody['authenticationData']['threeDSRequestData']['nativeThreeDS'] =
$this->configHelper->getThreeDSFlow($order->getStoreId());

// Due to new VISA compliance requirements, holderName is added to the payments call
$requestBody['paymentMethod']['holderName'] = $details['cardHolderName'] ?? null;
} else {
// Build base request for alternative payment methods for regular checkout and Instant Purchase
Expand Down

0 comments on commit f9734ca

Please sign in to comment.