3DS2 - Authentification "Data Only"
Pour tester ce scénario, utilisez un des numéros de carte ci-dessous :
- MASTERCARD
Carte | Date de validité | Resultat |
---|---|---|
5100010000000114 | Au choix | Succès |
5100010000002045 | Au choix | Succès |
5100010000002060 | Au choix | Échec |
- VISA
Carte | Date de validité | Resultat |
---|---|---|
4970115000002117 | Au choix | Succès |
4970115000002133 | Au choix | Échec |
4970115000002141 | Au choix | Échec : Code_86 NOT_PRGRAMM (Programme non supporté par l'ACS ) |
4970115000002125 | Au choix | Échec : CODE_88 (Version du protocole non supportée par l'ACS) |
4379000000001110 | Au choix | Échec : NOT_SUPPORTED_VERSION (Version 3D-Secure supérieure ou égale à 2.1) |
Cinématique des échanges
1. Appel initial au service PCI/Authentication/CreateSession avec une préference 3D Secure valorisée à "DATA_ONLY"
{ "amount": "990", "currency": "EUR", "transactionCategory": "PAYMENT", "productType": "GOODS_OR_SERVICE_PURCHASE", "merchant": { "mid": "5785350" }, "paymentForm": { "expiryMonth": "09", "expiryYear": "22", "networkPreference": "MASTERCARD", "pan": "5100010000000114" }, "customer": { "email": "sample@example.com" }, "protocolRequest": { "name": "THREEDS", "version": "2.1.0", "challengePreference": "DATA_ONLY" }, "ianTargetUrl": "<https://merchant.ian.com>" }
Réponse
{
"webService":"PCI/Authentication/CreateSession",
"version":"V4",
(...)
"answer":{
"operationSessionId":"30641640cba14eab8e6766094fd201da",
"operationUrl":"https://api-sogecommerce.societegenerale.eu/api-payment/V4/Charge/Public/Authenticate/Session/30641640cba14eab8e6766094fd201da;JSESSIONID=7A4beEA2d5fdbFeA7389F3B91a7bDBaBc8DA9df5.default-hostname",
"_type":"V4/PCI/Authentication/AuthenticationSessionResponse"
}
}
Dans l'exemple :
answer.operationUrl
: "https://api-sogecommerce.societegenerale.eu/api-payment/V4/Charge/Public/Authenticate/Session/30641640cba14eab8e6766094fd201da;JSESSIONID=7A4beEA2d5fdbFeA7389F3B91a7bDBaBc8DA9df5.default-hostname"Transmettez le champ
operationUrl
à la méthode d'authentificationauthenticate
de la librairie JS (plus d'infos : Guide d'intégration (mode simple)).
2. Retour du serveur de la plateforme de paiement avec le résultat de l'authentification
{ "webService":"PCI/Authentication/CreateSession", "version":"V4", "applicationVersion":"5.35.0", "serverDate":"(...)", "ticket":"e0358d6bf2334917bf56ec119c98b4b9", "applicationProvider":"", "metadata":null, "status":"SUCCESS", "mode":"TEST", "serverUrl":"https://api-sogecommerce.societegenerale.eu", "_type":"V4/WebService/Response", "answer":{ "id":"9b0cf8e3-1f59-47c1-b61e-2864bf8d6b61", "protocol":{ "name":"THREEDS", "version":"2.1.0", "network":"MASTERCARD", "challengePreference":"DATA_ONLY", "simulation":true, "_type":"V4/Charge/Authenticate/Protocol" } ,"value":{ "authenticationType":"DATA_ONLY", "authenticationId":{ "authenticationIdType":"dsTransId", "value":"b32bad9c-5a6d-40ca-94cc-3d26d2cfdc84", "_type":"V4/Charge/Authenticate/AuthenticationId" }, "authenticationValue":{ "authenticationValueType":"AAV", "value":"2bDsUnu7Y6B7Qx1Jjg63PTpWqbg=", "_type":"V4/Charge/Authenticate/AuthenticationValue" }, "status":"SUCCESS", "commerceIndicator":"04", "extension":{ "authenticationType":"THREEDS_V2", "threeDSServerTransID":"9b0cf8e3-1f59-47c1-b61e-2864bf8d6b61", "dsTransID":"b32bad9c-5a6d-40ca-94cc-3d26d2cfdc84", "acsTransID":"2bafb004-edf7-4cf4-979c-5aeecf2542f4", "transStatusReason":"80", "requestorName":"Lyra Authentication Server_ShopName", "dataOnlyStatus":"Success", "dataOnlyDecision":"Good", "dataOnlyScore":"42" "_type":"V4/Charge/Authenticate/AuthenticationResultExtensionThreedsV2" }, "reason":{ "code":"DS_SPECIFIC_VALUE_80", "_type":"V4/Charge/Authenticate/AuthenticationResultReason" }, "_type":"V4/Charge/Authenticate/AuthenticationResult" }, "_type":"V4/AuthenticationResponseData" } }