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": 344
},
{
"Identifier": "+593984XXXXXX",
"Type": 4,
"Amount": 61
}
]{
"amount": 430,
"amountWithoutTax": 200,
"amountWithTax": 200,
"tax": 30,
"service": 0,
"tip": 0,
"currency": "USD",
"clientTransactionId": "SP260307-1536-1730",
"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": "Fortaleza COG",
"address2": "Sera",
"country": "EC",
"state": "Loja",
"locality": "Loja",
"firstName": "Marcus",
"lastName": "Fenix",
"phoneNumber": "+593987654321",
"email": "marcus.fenix@cogmail.com",
"postalCode": "EC010101",
"customerId": 9,
"ipAddress": "127.0.0.1"
},
"lineItems": [
{
"productName": "Halo Infinite",
"unitPrice": 100,
"quantity": 2,
"totalAmount": 230,
"taxAmount": 30,
"productSKU": "4342.0024",
"productDescription": "Videojuego de Xbox Series X|S"
},
{
"productName": "Super Mario Odyssey",
"unitPrice": 200,
"quantity": 1,
"totalAmount": 200,
"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": "YctgHqo7RoaG0ibIGfLfAOUCFSjhwJLTgh5poUY9XARFdWFb5a0tplifDIHE250J7\/fhhLLpLENKsKFAQ3dhCYZjAIVYXfgXGMbBBlHo5EraxGWLpM9E+LjfXIoMXVD\/1A+qIZhlkrN6EmQ\/46Tmhg=="
} {
"paymentId": "G6sVhpdNE0CFpNp34wpJQ",
"payWithPayPhone": "https:\/\/pay.payphonetodoesposible.com\/PayPhone\/Index?paymentId=G6sVhpdNE0CFpNp34wpJQ&lang=es",
"payWithCard": "https:\/\/pay.payphonetodoesposible.com\/Anonymous\/Index?paymentId=G6sVhpdNE0CFpNp34wpJQ&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: