Pay with token
In the given context, the pay_register
parameter will be passed with the specific value of pay_token
in order to require the appropriate loading of the corresponding form in the user interface.
As a result of this action, the subsequent screen will be displayed on the user interface, which will be composed of the essential elements and fields designed to allow the effective completion of the registration process.
This screen will provide the user with the necessary elements and fields to enter and provide the required information accurately and completely. These fields may cover fundamental aspects such as personal data, contact information, payment details and any other relevant data according to the needs of the system.
The purpose of this functionality is to provide the user with a smooth and seamless experience during the registration process. By presenting all essential elements and fields on a single screen, the interaction flow is streamlined and simplified, allowing the user to complete the registration effectively and efficiently.

- The answer in this case at the end of the flow would be the following structure:
- SDK 1.3.0+
- SDK 1.2.2- (deprecated)
{
"code": "00",
"message": "Operación exitosa",
"messageUser": "Operación exitosa",
"messageUserEng": "Successful",
"response": {
"payMethod": "CARD",
"order": [
{
"payMethodAuthorization": "CARD",
"codeAuth": "S65892",
"currency": "PEN",
"amount": "149.00",
"installment": "00",
"deferred": "0",
"orderNumber": "7676797",
"stateMessage": "Autorizado",
"dateTransaction": "20240307",
"timeTransaction": "112034",
"uniqueId": "1286141",
"referenceNumber": "7000000"
}
],
"card": {
"brand": "VS",
"pan": "497010******0055",
"save": "false"
},
"billing": {
"firstName": "Lucho",
"lastName": "Torres",
"email": "luchotorres@gmail.com",
"phoneNumber": "989897960",
"street": "Av. Jorge Chávez 275",
"city": "Lima",
"state": "Lima",
"country": "PE",
"postalCode": "15000",
"documentType": "DNI",
"document": "12345678",
"companyName": ""
},
"merchant": {
"merchantCode": "4075169",
"facilitatorCode": ""
},
"token": {
"merchantBuyerId": "mc4075169",
"cardToken": "",
"alias": ""
},
"authentication": {
"result": ""
},
"customFields": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
},
"payloadHttp": "{\"code\":\"00\",\"message\":\"Operación exitosa\",\"messageUser\":\"Operación exitosa\",\"messageUserEng\":\"Successful\",\"transactionId\":\"562836188\",\"response\":{\"payMethod\":\"CARD\",\"order\":[{\"payMethodAuthorization\":\"CARD\",\"codeAuth\":\"S65892\",\"currency\":\"PEN\",\"amount\":\"149.00\",\"installment\":\"00\",\"deferred\":\"0\",\"orderNumber\":\"7676797\",\"stateMessage\":\"Autorizado\",\"dateTransaction\":\"20240307\",\"timeTransaction\":\"112034\",\"uniqueId\":\"1286141\",\"referenceNumber\":\"7000000\"}],\"card\":{\"brand\":\"VS\",\"pan\":\"497010******0055\",\"save\":\"false\"},\"billing\":{\"firstName\":\"Lucho\",\"lastName\":\"Torres\",\"email\":\"luchotorres@gmail.com\",\"phoneNumber\":\"989897960\",\"street\":\"Av. Jorge Chávez 275\",\"city\":\"Lima\",\"state\":\"Lima\",\"country\":\"PE\",\"postalCode\":\"15000\",\"documentType\":\"DNI\",\"document\":\"12345678\",\"companyName\":\"\"},\"merchant\":{\"merchantCode\":\"4075169\",\"facilitatorCode\":\"\"},\"token\":{\"merchantBuyerId\":\"mc4075169\",\"cardToken\":\"\",\"alias\":\"\"},\"authentication\":{\"result\":\"\"},\"customFields\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]}}",
"signature": "lP/95RGFr23Yt00sssh9zECwWTBRX6b1Bz0WHUq3XqE=",
"transactionId": "562836188"
}
{
"code": "00",
"message": "Operación exitosa",
"messageUser": "Operación exitosa",
"messageUserEng": "Successful",
"response": {
"codeAuth": "S24756",
"referenceNumber": "0419658",
"merchantCode": "4075157",
"currency": "PEN",
"amount": "149.00",
"orderNumber": "87576467",
"dateTransaction": "20240307",
"timeTransaction": "114749",
"payMethod": "CARD",
"card": {
"brand": "VS",
"pan": "497010******0055",
"save": false
},
"billing": {
"firstName": "Lucho",
"lastName": "Torres",
"email": "luchotorres@gmail.com",
"phoneNumber": "989897960",
"street": "Av. Jorge Chávez 275",
"city": "Lima",
"state": "Lima",
"country": "PE",
"postalCode": "15000",
"documentType": "DNI",
"document": "12345678"
},
"uniqueId": "1286157"
}
}
For detailed parameter definitions, visit the Parameters definition
section.