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": 3520
},
{
"Identifier": "+593984XXXXXX",
"Type": 4,
"Amount": 627
}
]{
"amount": 4400,
"amountWithoutTax": 4400,
"amountWithTax": 0,
"tax": 0,
"service": 0,
"tip": 0,
"currency": "USD",
"clientTransactionId": "SP260307-1014-2574",
"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": "Jackson",
"address2": "Wyoming",
"country": "EC",
"state": "Pichincha",
"locality": "Quito",
"firstName": "Joel",
"lastName": "Miller",
"phoneNumber": "+593984556688",
"email": "jmiller@lastofus.com",
"postalCode": "EC170108",
"customerId": 2,
"ipAddress": "127.0.0.1"
},
"lineItems": [
{
"productName": "Assassin Creed Ezio Collection",
"unitPrice": 200,
"quantity": 1,
"totalAmount": 200,
"taxAmount": 0,
"productSKU": "4342.0034",
"productDescription": "Videojuego de Xbox One"
},
{
"productName": "PlayStation 5 GOW Bundle",
"unitPrice": 2100,
"quantity": 2,
"totalAmount": 4200,
"taxAmount": 0,
"productSKU": "3342.0074",
"productDescription": "Consola de Videojuegos"
}
]
},
"documentId": null,
"phoneNumber": null,
"email": null,
"optionalParameter": null,
"lat": null,
"lng": null,
"lang": "es",
"transferTo": "YctgHqo7RoaG0ibIGfLfAOUCFSjhwJLTgh5poUY9XARFdWFb5a0tplifDIHE250JJ\/aC2x1wn9hJ56ONKMJuqSkkoFfK5ST4v3klOaFR2XLJ9skI\/TcvLu\/6+frKlpDEGekJ7LcFpDNypipdKrQKpg=="
} {
"paymentId": "aPluvtNjE2ik9ONFqH9Q",
"payWithPayPhone": "https:\/\/pay.payphonetodoesposible.com\/PayPhone\/Index?paymentId=aPluvtNjE2ik9ONFqH9Q&lang=es",
"payWithCard": "https:\/\/pay.payphonetodoesposible.com\/Anonymous\/Index?paymentId=aPluvtNjE2ik9ONFqH9Q&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: