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": 940
},
{
"Identifier": "+593984XXXXXX",
"Type": 4,
"Amount": 167
}
]{
"amount": 1175,
"amountWithoutTax": 600,
"amountWithTax": 500,
"tax": 75,
"service": 0,
"tip": 0,
"currency": "USD",
"clientTransactionId": "SP260307-1404-5482",
"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": "Villa Auditore",
"address2": "Florencia",
"country": "EC",
"state": "Imbabura",
"locality": "Ibarra",
"firstName": "Ezio",
"lastName": "Auditore",
"phoneNumber": "+593984567123",
"email": "ezio@assassins.com",
"postalCode": "EC300101",
"customerId": 13,
"ipAddress": "127.0.0.1"
},
"lineItems": [
{
"productName": "God of War Ragnarök",
"unitPrice": 500,
"quantity": 1,
"totalAmount": 575,
"taxAmount": 75,
"productSKU": "3342.0004",
"productDescription": "Videojuego de Playstation 5"
},
{
"productName": "Super Mario Odyssey",
"unitPrice": 200,
"quantity": 3,
"totalAmount": 600,
"taxAmount": 0,
"productSKU": "5342.0054",
"productDescription": "Videojuego de Nintendo Switch"
}
]
},
"documentId": null,
"phoneNumber": null,
"email": null,
"optionalParameter": null,
"lat": null,
"lng": null,
"lang": "es",
"transferTo": "YctgHqo7RoaG0ibIGfLfAOUCFSjhwJLTgh5poUY9XARFdWFb5a0tplifDIHE250JBZCnnZMjtj9DvBpP0VVIAqviD71c8uaAV\/mhxE1HVy6\/bn0Nasqwjz5pDJ\/g1iWStM6N+0UFKa0BQbfDGLsMpw=="
} {
"paymentId": "kZPYbgBIUChXL9MFLhR2w",
"payWithPayPhone": "https:\/\/pay.payphonetodoesposible.com\/PayPhone\/Index?paymentId=kZPYbgBIUChXL9MFLhR2w&lang=es",
"payWithCard": "https:\/\/pay.payphonetodoesposible.com\/Anonymous\/Index?paymentId=kZPYbgBIUChXL9MFLhR2w&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: