< head>
< script src="https://pay.payphonetodoesposible.com/api/button/js?appId=TU_IDENTIFICADOR">< /script>
< /head>
< script>
/* Script Express Checkout */
window.onload = function() {
payphone.Button({
token: "Colocar-Tu-Token",
//PARÁMETROS DE CONFIGURACIÓN
btnHorizontal: true,
btnCard: true,
createOrder: function(actions){
return actions.prepare({
amount: 1296,
amountWithoutTax: 400,
amountWithTax: 800,
tax: 96,
service: 0,
tip: 0,
clientTransactionId: "250403-1808-3360",
reference: "Express Checkout Test https://payphone.website",
currency: "USD",
storeId: "Colocar-Tu-StoreID",
});
},
onComplete: function(model, actions){
console.table(model);
}
}).render('#pp-button');
}
< /script>
< div id="pp-button"> div>