Antes de iniciar la integración, asegúrate de preparar los datos de tu transacción.
Y preparar los actores a los cuales se dividira el cobro.
[
{
"Identifier": "17XXXXXXXX001",
"Type": 3,
"Amount": 644
},
{
"Identifier": "+593984XXXXXX",
"Type": 4,
"Amount": 115
}
]{
"amount": 805,
"amountWithoutTax": 0,
"amountWithTax": 700,
"tax": 105,
"service": 0,
"tip": 0,
"currency": "USD",
"clientTransactionId": "SP260307-1552-5917",
"reference": "Prueba Boton con Split March 2026",
"storeId": "99c14ad3-c9f8-466e-b73f-609e39284538",
"responseUrl": "https:\/\/payphone.website\/api-payphone\/API-CONFIRMACION\/ConfirmacionSplit.php",
"cancellationUrl": "https:\/\/payphone.website\/api-payphone\/API-CONFIRMACION\/ConfirmacionSplit.php",
"order": {
"billTo": {
"address1": "Mansión Croft",
"address2": "Londres",
"country": "EC",
"state": "Tungurahua",
"locality": "Ambato",
"firstName": "Lara",
"lastName": "Croft",
"phoneNumber": "+593983456789",
"email": "lara.croft@tombraider.com",
"postalCode": "EC100101",
"customerId": 10,
"ipAddress": "127.0.0.1"
},
"lineItems": [
{
"productName": "God of War Ragnarök",
"unitPrice": 300,
"quantity": 1,
"totalAmount": 345,
"taxAmount": 45,
"productSKU": "3342.0004",
"productDescription": "Videojuego de Playstation 5"
},
{
"productName": "Sonic Frontiers Standard Edition",
"unitPrice": 400,
"quantity": 1,
"totalAmount": 460,
"taxAmount": 60,
"productSKU": "5342.0044",
"productDescription": "Videojuego de Nintendo Switch"
}
]
},
"documentId": null,
"phoneNumber": null,
"email": null,
"optionalParameter": null,
"lat": null,
"lng": null,
"lang": "es",
"transferTo": "YctgHqo7RoaG0ibIGfLfAOUCFSjhwJLTgh5poUY9XARFdWFb5a0tplifDIHE250Jny6PuKx\/Hho9by\/\/DlhShb3tmnzqmxapIg4gvf28VrMbpHTPOaud9XLjK9Y6F8oZxkLzAE5Q8MWtBVLUtrJ4rQ=="
} {
"paymentId": "pCznl12CG0OrfCSO2Hx1zg",
"payWithPayPhone": "https:\/\/pay.payphonetodoesposible.com\/PayPhone\/Index?paymentId=pCznl12CG0OrfCSO2Hx1zg&lang=es",
"payWithCard": "https:\/\/pay.payphonetodoesposible.com\/Anonymous\/Index?paymentId=pCznl12CG0OrfCSO2Hx1zg&lang=es"
}Una vez que recibes la respuesta de la API, debes presentar al usuario las opciones de pago como botones que, al ser clickeados, redirijan al usuario a los formularios de pago de Payphone.
Consulta la documentación oficial para conocer todos los detalles, parámetros disponibles, estructuras de respuesta y buenas prácticas: