Integration
Button embed
Declarative HTML for standard payment buttons.
Required attributes
The declarative integration is best for product pages, invoices, and static CMS pages where you can add a script tag and button markup.
- Use
data-makepay-payment-linkwith the payment UID you want to open. - Load the modal script before the customer can click the payment button.
- Keep the element keyboard reachable with a real
buttonoraelement.
html
<script src="https://makepay.io/modal/makepay.js"></script>
<button type="button" data-makepay-payment-link="YOUR_PAYMENT_UID">
Pay with crypto
</button>When to use it
Use button embed when the merchant site does not need to run custom JavaScript before opening the checkout.