Pagar con opción de registro de tarjeta
En el escenario en cuestión, se procederá a enviar el parámetro action
con el valor específico de pay_register
con el propósito de requerir la carga adecuada del formulario correspondiente en la interfaz de usuario.
Como resultado de esta acción, se mostrará en la interfaz de usuario la pantalla subsiguiente, en la cual se dispondrán los elementos y campos esenciales diseñados estratégicamente para permitir la realización efectiva del proceso de registro.
Dicha pantalla permitirá al usuario ingresar y proporcionar la información necesaria para completar exitosamente el proceso de registro. Se presentarán campos específicos que abarcarán una variedad de datos esenciales, como información personal, detalles de pago y cualquier otro dato relevante según los requisitos del sistema.
El objetivo de esta funcionalidad es proporcionar al usuario una experiencia fluida y sin complicaciones durante el proceso de registro. Al mostrar todos los elementos y campos esenciales en una sola pantalla, se agiliza y simplifica el flujo de interacción, permitiendo al usuario completar el registro de manera efectiva y eficiente.
- La respuesta en este caso al terminar el flujo sería la siguiente estructura:
- SDK 1.3.0+
- SDK 1.2.2- (deprecada)
- Tarjeta
- Yape
{
"code": "00",
"message": "OK",
"messageUser": "Operación exitosa",
"messageUserEng": "Successful",
"response": {
"payMethod": "CARD",
"order": [
{
"payMethodAuthorization": "CARD",
"codeAuth": "S31566",
"currency": "PEN",
"amount": "1.00",
"installment": "00",
"deferred": "0",
"orderNumber": "7676796",
"stateMessage": "Autorizado",
"dateTransaction": "20240307",
"timeTransaction": "111832",
"uniqueId": "1286138",
"referenceNumber": "7000000"
}
],
"card": {
"brand": "VS",
"pan": "497010******0055",
"save": "true"
},
"billing": {
"firstName": "Juan",
"lastName": "Wick Quispe",
"email": "jwickq@izi.com",
"phoneNumber": "989339999",
"street": "calle el demo sdk",
"city": "lima",
"state": "lima",
"country": "PE",
"postalCode": "00001",
"documentType": "DNI",
"document": "12345678",
"companyName": ""
},
"merchant": {
"merchantCode": "4075169",
"facilitatorCode": ""
},
"token": {
"merchantBuyerId": "enriquepariascauser2025",
"cardToken": "84d8d7fc6a870ba4b167a5fece5394519a162b8f307a481f5b6b5876b34afac0",
"alias": ""
},
"authentication": {
"result": ""
},
"customFields": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
},
"payloadHttp": "{\"code\":\"00\",\"message\":\"OK\",\"messageUser\":\"Operación exitosa\",\"messageUserEng\":\"Successful\",\"transactionId\":\"565795242\",\"response\":{\"payMethod\":\"CARD\",\"order\":[{\"payMethodAuthorization\":\"CARD\",\"codeAuth\":\"S31566\",\"currency\":\"PEN\",\"amount\":\"1.00\",\"installment\":\"00\",\"deferred\":\"0\",\"orderNumber\":\"7676796\",\"stateMessage\":\"Autorizado\",\"dateTransaction\":\"20240307\",\"timeTransaction\":\"111832\",\"uniqueId\":\"1286138\",\"referenceNumber\":\"7000000\"}],\"card\":{\"brand\":\"VS\",\"pan\":\"497010******0055\",\"save\":\"true\"},\"billing\":{\"firstName\":\"Juan\",\"lastName\":\"Wick Quispe\",\"email\":\"jwickq@izi.com\",\"phoneNumber\":\"989339999\",\"street\":\"calle el demo sdk\",\"city\":\"lima\",\"state\":\"lima\",\"country\":\"PE\",\"postalCode\":\"00001\",\"documentType\":\"DNI\",\"document\":\"12345678\",\"companyName\":\"\"},\"merchant\":{\"merchantCode\":\"4075169\",\"facilitatorCode\":\"\"},\"token\":{\"merchantBuyerId\":\"enriquepariascauser2025\",\"cardToken\":\"84d8d7fc6a870ba4b167a5fece5394519a162b8f307a481f5b6b5876b34afac0\",\"alias\":\"\"},\"authentication\":{\"result\":\"\"},\"customFields\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]}}",
"signature": "YTpUgVEVx0YGQUfUxc7gwvGKroFCe8KBTVYVtj5X18E=",
"transactionId": "565795242"
}
{
"code": "00",
"message": "OK",
"messageUser": "Operación exitosa",
"messageUserEng": "Successful",
"response": {
"payMethod": "YAPE_CODE",
"order": [
{
"payMethodAuthorization": "YAPE_CODE",
"codeAuth": "005378",
"currency": "PEN",
"amount": "6.20",
"installment": "00",
"deferred": "0",
"orderNumber": "202407180205",
"stateMessage": "Autorizado",
"dateTransaction": "20240718",
"timeTransaction": "194813",
"uniqueId": "0719004813942358",
"referenceNumber": "8300050"
}
],
"card": {
"brand": "VS",
"pan": "489068******6131",
"save": "false"
},
"billing": {
"firstName": "Juan",
"lastName": "Wick Quispe",
"email": "jwickq@izi.com",
"phoneNumber": "989339999",
"street": "calle el demo sdk",
"city": "lima",
"state": "lima",
"country": "PE",
"postalCode": "00001",
"documentType": "DNI",
"document": "77822705",
"companyName": ""
},
"merchant": {
"merchantCode": "4001934",
"facilitatorCode": ""
},
"token": {
"merchantBuyerId": "MB76114B",
"cardToken": "",
"alias": ""
},
"authentication": {
"result": ""
},
"customFields": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"payloadHttp": "{\"code\":\"00\",\"message\":\"OK\",\"messageUser\":\"Operación exitosa\",\"messageUserEng\":\"Successful\",\"transactionId\":\"1721349995788\",\"response\":{\"payMethod\":\"YAPE_CODE\",\"order\":[{\"payMethodAuthorization\":\"YAPE_CODE\",\"codeAuth\":\"005378\",\"currency\":\"PEN\",\"amount\":\"6.20\",\"installment\":\"00\",\"deferred\":\"0\",\"orderNumber\":\"202407180205\",\"stateMessage\":\"Autorizado\",\"dateTransaction\":\"20240718\",\"timeTransaction\":\"194813\",\"uniqueId\":\"0719004813942358\",\"referenceNumber\":\"8300050\"}],\"card\":{\"brand\":\"VS\",\"pan\":\"489068******6131\",\"save\":\"false\"},\"billing\":{\"firstName\":\"Juan\",\"lastName\":\"Wick Quispe\",\"email\":\"jwickq@izi.com\",\"phoneNumber\":\"989339999\",\"street\":\"calle el demo sdk\",\"city\":\"lima\",\"state\":\"lima\",\"country\":\"PE\",\"postalCode\":\"00001\",\"documentType\":\"DNI\",\"document\":\"77822705\",\"companyName\":\"\"},\"merchant\":{\"merchantCode\":\"4001934\",\"facilitatorCode\":\"\"},\"token\":{\"merchantBuyerId\":\"MB76114B\",\"cardToken\":\"\",\"alias\":\"\"},\"authentication\":{\"result\":\"\"},\"customFields\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]}}",
"signature": "=rKNa4wEIV2s8OH049ec7PFj4qIVv2Kag+Cl6PT1f2t0=",
"transactionId": "1721349995788"
}
{
"code": "00",
"message": "OK",
"messageUser": "Operación exitosa",
"messageUserEng": "Successful",
"response": {
"codeAuth": "S49807",
"referenceNumber": "0719967",
"merchantCode": "4075157",
"currency": "PEN",
"amount": "1.00",
"orderNumber": "87576466",
"dateTransaction": "20240307",
"timeTransaction": "114638",
"tokenization": {
"cardToken": "6a9bcaef95027d774fbea5134b5573bc05756b8cccaa29ef76703d4f5912d48a"
},
"payMethod": "CARD",
"card": {
"brand": "VS",
"pan": "497010******0055",
"save": true
},
"billing": {
"firstName": "Juan",
"lastName": "Wick Quispe",
"email": "jwickq@izi.com",
"phoneNumber": "989339999",
"street": "calle el demo sdk",
"city": "lima",
"state": "lima",
"country": "PE",
"postalCode": "00001",
"documentType": "DNI",
"document": "12345678"
},
"uniqueId": "1286156"
}
}
Para conocer detalladamente la definición de los parámetros, visite la sección Definición de parámetros
.