• Francia
Back Office Vendedor
asistencia
FAQcontacte el soporte tecnico
Buscar
Categoria
Tags
Colombia
Colombia
Página principal
Casos de uso
Crear un pago
Crear un pago en cuotas
Crear un pago por token
Crear un enlace de pago
Crear una suscripción
Gestione sus suscripciones
Gestione sus transacciones
Analizar los diarios
Docs API
Formulario incrustado
API REST
API REST PCI-DSS
Formulario en redirección
Pago móvil
Intercambio de ficheros
Ejemplo de código
Medios de pago
Módulos de pago
Guías Back Office

3DS2 - autentificación frictionless, con 3DS Method

Para probar este escenario, use uno de los números de tarjeta a continuación:

Tarjeta Fecha de vencimiento. Marca
4970110000001029 A elección VISA
5100010000000114 A elección MASTERCARD
375900000010007 A elección AMEX

Secuencia de los intercambios

1. Llamada al al Web Service PCI/Authentication/CreateSession con una tarjeta afiliada a 3DS2.

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

Respuesta

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

En el ejemplo:

  • answer.operationUrl : "https://api.payty.com/api-payment/V4/Charge/Public/Authenticate/Session/30641640cba14eab8e6766094fd201da;JSESSIONID=7A4beEA2d5fdbFeA7389F3B91a7bDBaBc8DA9df5.nombre de host predeterminado"

  • Pase el campo operationUrl al método de autenticación kr-authenticate.js de la biblioteca JS (más información: Guía de integración (modo simple) ).

2. Retorno del servidor de la plataforma de pago de la autentificación (Método 3DS).

{
 "webService":"PCI/Authentication/CreateSession",
 "version":"V4",
 "applicationVersion":"5.23.0",
 "serverDate":"2023-05-05T09:33:32+00:00",
 "ticket":"3b68064f80f346919828dee761bd22b5",
 "applicationProvider":"",
 "metadata":null,
 "status":"SUCCESS",
 "mode":"TEST",
 "serverUrl":"https://api.payty.com",
 "_type":"V4/WebService/Response",
 "answer":{
      "id":"eba2b0a0-a2ab-441e-acbc-407c290fea24",
      "operationSessionId":null,
      "protocol":{
         "name":"THREEDS",
         "version":"2.1.0",
         "network":"VISA",
         "challengePreference":"NO_PREFERENCE",
         "simulation":true,
         "_type":"V4/Charge/Authenticate/Protocol"
      },
      "value":{
         "authenticationType":"FRICTIONLESS",
         "authenticationId":{
            "authenticationIdType":"dsTransId",
            "value":"0b996b14-ee06-45bb-b16e-ec7640356909",
            "_type":"V4/Charge/Authenticate/AuthenticationId"
         },
         "authenticationValue":{
            "authenticationValueType":"CAVV",
            "value":"UKFH7RjlC5AFEGvEdbEvZa6AAmU=",
            "_type":"V4/Charge/Authenticate/AuthenticationValue"
         },
         "status":"SUCCESS",
         "commerceIndicator":"05",
         "extension":{
            "authenticationType":"THREEDS_V2",
            "challengeCancelationIndicator":null,
            "cbScore":null,
            "cbAvalgo":null,
            "cbExemption":null,
            "paymentUseCase":null,
            "threeDSServerTransID":"eba2b0a0-a2ab-441e-acbc-407c290fea24",
            "dsTransID":"0b996b14-ee06-45bb-b16e-ec7640356909",
            "acsTransID":"4c170f99-1177-4191-99a0-100edd76e325",
            "sdkTransID":null,
            "transStatusReason":null,
            "requestedExemption":"ISSUER_TRA",
            "requestorName":"Lyra SMS",
            "cardHolderInfo":null,
            "dataOnlyStatus":null,
            "dataOnlyDecision":null,
            "dataOnlyScore":null,
            "_type":"V4/Charge/Authenticate/AuthenticationResultExtensionThreedsV2"
         },
         "reason":{
            "code":null,
            "message":null,
            "_type":"V4/Charge/Authenticate/AuthenticationResultReason"
         },
         "_type":"V4/Charge/Authenticate/AuthenticationResult"
      },
      "_type":"V4/AuthenticationResponseData"
   }
}
© 2025 Todos los derechos reservados de Payty
25.17-1.11