Pagar con opción de registro de tarjeta
En el contexto descrito, se empleará el parámetro action
con el valor pay_register
para solicitar la carga del formulario específico requerido.
Esta acción desencadenará la presentación de una interfaz de usuario que mostrará una pantalla con todos los elementos y campos necesarios para llevar a cabo el proceso de registro de manera exitosa. Esta pantalla permitirá a los usuarios ingresar y proporcionar la información requerida, como datos personales, detalles de pago y cualquier otro dato pertinente.
El objetivo de esta funcionalidad es brindar a los usuarios una experiencia intuitiva y eficiente al momento de registrarse en el sistema. Al mostrar todos los elementos y campos necesarios en una sola pantalla, se simplifica y agiliza el proceso, lo que permite a los usuarios completar el registro de manera más rápida y sin inconvenientes.
La inclusión de estos elementos y campos relevantes garantiza que se capturen todos los datos esenciales para el registro exitoso. Esto puede incluir campos como nombre, dirección, información de contacto, detalles de tarjeta de crédito u otros métodos de pago, y cualquier otra información adicional que sea necesaria o requerida según los requisitos del sistema.
- La respuesta en este caso al terminar el flujo sería la siguiente estructura:
- SDK 1.4.1+
- SDK 1.3.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