• França
lyra.com
Procurando
Categoria
Tags
pagina inicial
Suporte técnico

3DS2 - Autenticação rejeitada

Para testar este roteiro, use um dos números de cartão abaixo:

Cartão Data de validade Marca
4970110000000401 Escolha livre VISA

Cinemática das trocas

1. Chamada do Web Service PCI/Authentication/CreateSession com um cartão inscrito no 3DS2.

{
  "amount":"9990",
  "currency":"EUR",
  "transactionCategory":"PAYMENT",
  "productType":"GOODS_OR_SERVICE_PURCHASE",
  "merchant": {
    "mid":""
  },
  "paymentForm": {
    "expiryMonth":"09",
    "expiryYear":"22",
    "networkPreference":"VISA",
    "pan":"4970110000000401"
  },
  "protocolRequest": {
    "name":"THREEDS",
    "version":"2",
    "challengePreference":"NO_PREFERENCE"
  },
 "ianTargetUrl": "<https://merchant.ian.com>"
}

Resposta

{
  "webService":"PCI/Authentication/CreateSession",
  "version":"V4",
   (...)
  "answer":{
    "operationSessionId":"30641640cba14eab8e6766094fd201da",
    "operationUrl":"https://api.lyra.com/api-payment/V4/Charge/Public/Authenticate/Session/30641640cba14eab8e6766094fd201da;JSESSIONID=7A4beEA2d5fdbFeA7389F3B91a7bDBaBc8DA9df5.default-hostname",
    "_type":"V4/PCI/Authentication/AuthenticationSessionResponse"
  }
}

No exemplo:

  • answer.operationUrl : "https://api.lyra.com/api-payment/V4/Charge/Public/Authenticate/Session/30641640cba14eab8e6766094fd201da;JSESSIONID=7A4beEA2d5fdbFeA7389F3B91a7bDBaBc8DA9df5.default-hostname"

  • Passe o campo operationUrl para o método de autenticação kr-authenticate.js da biblioteca JS (mais informações: Guia de integração (modo simples) ).

2. Retorno do servidor da plataforma de pagamento com o resultado de autenticação.

{
  "webService": "PCI/Authentication/CreateSession",
  "version": "V4",
  "applicationVersion": "5.23.0",
  "serverDate": "2023-05-05T09:33:32+00:00",
  "ticket": "3b68064f80f346919828dee761bd22b5",
  "applicationProvider": "LYRA",
  "metadata": null,
  "status": "SUCCESS",
  "mode": "TEST",
  "serverUrl": "https://api.lyra.com",
  "_type": "V4/WebService/Response",
  "answer": {
    "id": "9f3560a7-4cb2-4a9a-9485-7306b66e18c0",
    "operationSessionId": null,
    "protocol": {
      "name": "THREEDS",
      "version": "2.2.0",
      "network": "VISA",
      "challengePreference": "NO_PREFERENCE",
      "simulation": true,
      "_type": "V4/Charge/Authenticate/Protocol"
    },
    "value": {
      "authenticationType": "FRICTIONLESS",
      "authenticationId": {
        "authenticationIdType": "dsTransId",
        "value": "34e43c9e-b27e-44af-bab4-de88b5aebded",
        "_type": "V4/Charge/Authenticate/AuthenticationId"
      },
      "authenticationValue": null,
      "status": "REJECTED",
      "commerceIndicator": null,
      "extension": {
        "authenticationType": "THREEDS_V2",
        "challengeCancelationIndicator": null,
        "cbScore": null,
        "cbAvalgo": null,
        "cbExemption": null,
        "paymentUseCase": null,
        "threeDSServerTransID": "9f3560a7-4cb2-4a9a-9485-7306b66e18c0",
        "dsTransID": "34e43c9e-b27e-44af-bab4-de88b5aebded",
        "acsTransID": "14ecdefd-36da-4ced-ad76-752f21e44c14",
        "sdkTransID": null,
        "transStatusReason": "10",
        "requestedExemption": null,
        "requestorName": "Lyra SMS",
        "cardHolderInfo": null,
        "dataOnlyStatus": null,
        "dataOnlyDecision": null,
        "dataOnlyScore": null,
        "_type": "V4/Charge/Authenticate/AuthenticationResultExtensionThreedsV2"
      },
      "reason": {
        "code": "STOLEN_CARD",
        "message": null,
        "_type": "V4/Charge/Authenticate/AuthenticationResultReason"
      },
      "_type": "V4/Charge/Authenticate/AuthenticationResult"
    },
    "_type": "V4/AuthenticationResponseData"
  }
}
%}
Jobs
Legal
GDPR
25.25.0-1.11