3DS2 - Authentification en échec (FAILED)
Pour tester ce scénario, utilisez un des numéros de carte ci-dessous :
Carte | Date de validité | Marque |
---|---|---|
4970100000000022 | Au choix | VISA |
5970100300000026 | Au choix | MASTERCARD |
378283000000002 | Au choix | AMEX |
Cinématique des échanges
1. Appel initial au service PCI/Charge/CreatePayment avec une carte enrôlée 3DS1.
{ "amount": "9990", "currency": "EUR", "paymentForms": [ { "paymentMethodType": "CARD", "pan": "4970100000000022", "expiryMonth": "11", "expiryYear": "27", "securityCode": "123" } ], "customer": { "email": "sample@example.com" }, "authenticationDetails": { "protocol": { "name": "THREEDS", "version": "1.0.2", "directoryServer": "VISA" }, "status":"FAILED", "xid":"ZlIxaE8wdTFCbmNUOFJ2ZzVwdnA=", "commerceIndicator":"06" } }
2. Retour du serveur de la plateforme de paiement avec le résultat final du paiement.
{ "webService": "PCI/Charge/CreatePayment", "version": "V4", "applicationVersion": "5.36.0", "status": "SUCCESS", "answer": { "shopId": "12345678", "orderCycle": "CLOSED", "orderStatus": "UNPAID", "serverDate": "2022-06-09T09:28:22+00:00", "orderDetails": { "orderTotalAmount": 9990, "orderEffectiveAmount": 9990, "orderCurrency": "EUR", "mode": "TEST", "orderId": "myOrderId-448631", "metadata": null, "_type": "V4/OrderDetails" }, "customer": { "billingDetails": { "address": null, "category": null, "cellPhoneNumber": null, "city": null, "country": null, "district": null, "firstName": null, "identityCode": null, "identityType": null, "language": "FR", "lastName": null, "phoneNumber": null, "state": null, "streetNumber": null, "title": null, "zipCode": null, "legalName": null, "_type": "V4/Customer/BillingDetails" }, "email": "sample@example.net", "reference": null, "shippingDetails": { "address": null, "address2": null, "category": null, "city": null, "country": null, "deliveryCompanyName": null, "district": null, "firstName": null, "identityCode": null, "lastName": null, "legalName": null, "phoneNumber": null, "shippingMethod": null, "shippingSpeed": null, "state": null, "streetNumber": null, "zipCode": null, "_type": "V4/Customer/ShippingDetails" }, "extraDetails": { "browserAccept": null, "fingerPrintId": null, "ipAddress": "163.116.174.22", "browserUserAgent": null, "_type": "V4/Customer/ExtraDetails" }, "shoppingCart": { "insuranceAmount": null, "shippingAmount": null, "taxAmount": null, "cartItemInfo": null, "_type": "V4/Customer/ShoppingCart" }, "_type": "V4/Customer/Customer" }, "transactions": [ { "shopId": "12345678", "uuid": "542296abdb0343fbab900c224fb34dd0", "amount": 9990, "currency": "EUR", "paymentMethodType": "CARD", "paymentMethodToken": null, "status": "UNPAID", "detailedStatus": "REFUSED", "operationType": "DEBIT", "effectiveStrongAuthentication": "DISABLED", "creationDate": "2022-06-09T09:28:21+00:00", "errorCode": "PSP_539", "errorMessage": "3D Secure refusal for the transaction", "detailedErrorCode": "39", "detailedErrorMessage": "3D Secure refusal for the transaction.", "metadata": null, "transactionDetails": { "liabilityShift": null, "effectiveAmount": 9990, "effectiveCurrency": "EUR", "creationContext": "CHARGE", "cardDetails": { "paymentSource": "EC", "manualValidation": "NO", "expectedCaptureDate": "2022-06-09T09:28:21+00:00", "effectiveBrand": "CB", "pan": "497011XXXXXX1028", "expiryMonth": 11, "expiryYear": 2027, "country": "FR", "issuerCode": 17807, "issuerName": "Banque Populaire Occitane", "effectiveProductCode": "5", "legacyTransId": "903820", "legacyTransDate": "2022-06-09T09:28:21+00:00", "paymentMethodSource": "NEW", "authorizationResponse": { "amount": null, "currency": null, "authorizationDate": null, "authorizationNumber": null, "authorizationResult": null, "authorizationMode": "FULL", "_type": "V4/PaymentMethod/Details/Cards/CardAuthorizationResponse" }, "captureResponse": { "refundAmount": null, "refundCurrency": null, "captureDate": null, "captureFileNumber": null, "effectiveRefundAmount": null, "effectiveRefundCurrency": null, "_type": "V4/PaymentMethod/Details/Cards/CardCaptureResponse" }, "threeDSResponse": { "authenticationResultData": { "transactionCondition": null, "enrolled": null, "status": null, "eci": null, "xid": null, "cavvAlgorithm": null, "cavv": null, "signValid": null, "brand": null, "_type": "V4/PaymentMethod/Details/Cards/CardAuthenticationResponse" }, "_type": "V4/PaymentMethod/Details/Cards/ThreeDSResponse" }, "authenticationResponse": { "id": "d894ea4c-db0d-4583-8885-a341987c5f86", "operationSessionId": "8160d9b691184fd690526f994c8a0c02", "protocol": { "name": "THREEDS", "version": "1", "network": "VISA", "challengePreference": "NO_PREFERENCE", "simulation": false, "_type": "V4/Charge/Authenticate/Protocol" }, "value": { "authenticationId": { "authenticationIdType": "xid", "value": "ZlIxaE8wdTFCbmNUOFJ2ZzVwdnA=", "_type": "V4/Charge/Authenticate/AuthenticationId" }, "status": "FAILED", "commerceIndicator": "06", "extension": { "authenticationType": "THREEDS_V1", "_type": "V4/Charge/Authenticate/AuthenticationResultExtensionThreedsV1" }, "_type": "V4/Charge/Authenticate/AuthenticationResult" }, "_type": "V4/AuthenticationResponseData" }, "installmentNumber": null, "installmentCode": null, "markAuthorizationResponse": { "amount": null, "currency": null, "authorizationDate": null, "authorizationNumber": null, "authorizationResult": null, "_type": "V4/PaymentMethod/Details/Cards/MarkAuthorizationResponse" }, "cardHolderName": null, "identityDocumentNumber": null, "identityDocumentType": null, "initialIssuerTransactionIdentifier": null, "productCategory": null, "nature": null, "_type": "V4/PaymentMethod/Details/CardDetails" }, "acquirerDetails": null, "fraudManagement": { "riskControl": [], "riskAnalysis": [], "_type": "V4/PaymentMethod/Details/FraudManagement" }, "subscriptionDetails": { "subscriptionId": null, "_type": "V4/PaymentMethod/Details/SubscriptionDetails" }, "parentTransactionUuid": null, "mid": "9876543", "sequenceNumber": 1, "taxAmount": null, "preTaxAmount": null, "taxRate": null, "externalTransactionId": null, "nsu": null, "tid": "001", "acquirerNetwork": "CB", "taxRefundAmount": null, "userInfo": null, "paymentMethodTokenPreviouslyRegistered": null, "occurrenceType": "UNITAIRE", "_type": "V4/TransactionDetails" }, "_type": "V4/PaymentTransaction" } ], "subMerchantDetails": null, "_type": "V4/Payment" }, "ticket": "e3eb2a74312141ec9eda1c24c4da864a", "serverDate": "2022-06-09T09:28:22+00:00", "applicationProvider": "", "metadata": null, "mode": "TEST", "serverUrl": "https://api.scelliuspaiement.labanquepostale.fr", "_type": "V4/WebService/Response" }