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": 2208
},
{
"Identifier": "+593984XXXXXX",
"Type": 4,
"Amount": 393
}
]{
"amount": 2760,
"amountWithoutTax": 2300,
"amountWithTax": 400,
"tax": 60,
"service": 0,
"tip": 0,
"currency": "USD",
"clientTransactionId": "SP260307-1534-0795",
"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": "UNSC Infinity",
"address2": "Espacio",
"country": "EC",
"state": "Manabí",
"locality": "Manta",
"firstName": "Master",
"lastName": "Chief",
"phoneNumber": "+593981234567",
"email": "mchief@halo.com",
"postalCode": "EC200101",
"customerId": 11,
"ipAddress": "127.0.0.1"
},
"lineItems": [
{
"productName": "God of War Ragnarök",
"unitPrice": 400,
"quantity": 1,
"totalAmount": 460,
"taxAmount": 60,
"productSKU": "3342.0004",
"productDescription": "Videojuego de Playstation 5"
},
{
"productName": "PlayStation 5 GOW Bundle",
"unitPrice": 2300,
"quantity": 1,
"totalAmount": 2300,
"taxAmount": 0,
"productSKU": "3342.0074",
"productDescription": "Consola de Videojuegos"
}
]
},
"documentId": null,
"phoneNumber": null,
"email": null,
"optionalParameter": null,
"lat": null,
"lng": null,
"lang": "es",
"transferTo": "YctgHqo7RoaG0ibIGfLfAOUCFSjhwJLTgh5poUY9XARFdWFb5a0tplifDIHE250JnDovGvfAa5wKt0gO96yDpNg\/VRY36RZbxMhuuQXel3zX2UrjiD9QdS03y8\/VO3BTojNAp3Cu9E2mAwDTYzOfyg=="
} {
"paymentId": "qkbp4ahxXEmR9v9BvglcAw",
"payWithPayPhone": "https:\/\/pay.payphonetodoesposible.com\/PayPhone\/Index?paymentId=qkbp4ahxXEmR9v9BvglcAw&lang=es",
"payWithCard": "https:\/\/pay.payphonetodoesposible.com\/Anonymous\/Index?paymentId=qkbp4ahxXEmR9v9BvglcAw&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: