<script type="text/javascript" src="https://sandbox.sipay.es/fpay/v1/static/bundle/fastpay.js"></script>
<button
type="button"
data-key="key-value"
data-amount="2872"
data-currency="EUR"
data-template="v2"
data-callback="sample_callback"
data-logo-style="rectangle"
data-logo-url="https://picsum.photos/200/100"
data-business-title="My Company Name"
data-description="Some product description"
data-paymentbutton="Pagar"
data-cardholdername="true"
data-header="false"
data-autosave="true"
data-hiddenprice="true"
class="fastpay-btn">
</button>
<pre id="response">
</pre>
xxxxxxxxxx
function sample_callback(data) {
document.getElementById("response").innerHTML = 'Response:' + JSON.stringify(data, null, '\t')
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.