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": 3792
},
{
"Identifier": "+593984XXXXXX",
"Type": 4,
"Amount": 675
}
]{
"amount": 4740,
"amountWithoutTax": 600,
"amountWithTax": 3600,
"tax": 540,
"service": 0,
"tip": 0,
"currency": "USD",
"clientTransactionId": "SP260307-1534-4794",
"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": "Mansion Arklay",
"address2": "Raccoon City",
"country": "EC",
"state": "Guayas",
"locality": "Guayaquil",
"firstName": "Jill",
"lastName": "Valentine",
"phoneNumber": "+593984102030",
"email": "jvalentine@residentevil.com",
"postalCode": "040108",
"customerId": 4,
"ipAddress": "127.0.0.1"
},
"lineItems": [
{
"productName": "Horizon Forbidden West",
"unitPrice": 300,
"quantity": 2,
"totalAmount": 600,
"taxAmount": 0,
"productSKU": "3342.0014",
"productDescription": "Videojuego de Playstation 4"
},
{
"productName": "Xbox Series X",
"unitPrice": 1200,
"quantity": 3,
"totalAmount": 4140,
"taxAmount": 540,
"productSKU": "4342.0084",
"productDescription": "Consola de Videojuegos"
}
]
},
"documentId": null,
"phoneNumber": null,
"email": null,
"optionalParameter": null,
"lat": null,
"lng": null,
"lang": "es",
"transferTo": "YctgHqo7RoaG0ibIGfLfAOUCFSjhwJLTgh5poUY9XARFdWFb5a0tplifDIHE250J7NkjmRe+VhLteUnZ8DZMFN8QzzX0NxRXTZzVQVD5NqQwwJkX7L\/WXjjR9UnVF2yJ2QRz6\/75mXKmwqM76gLlOA=="
} {
"paymentId": "QSHH5kCbTEfQfhtILJfVA",
"payWithPayPhone": "https:\/\/pay.payphonetodoesposible.com\/PayPhone\/Index?paymentId=QSHH5kCbTEfQfhtILJfVA&lang=es",
"payWithCard": "https:\/\/pay.payphonetodoesposible.com\/Anonymous\/Index?paymentId=QSHH5kCbTEfQfhtILJfVA&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: