Add LockPay to your restaurant in one line
Paste one script tag. LockPay mounts the button and owns the entire payment experience — your site handles nothing else.
The install
<script
src="https://cdn.lockpay.app/v1.js"
data-lockpay-key="pk_test_rice_it_chicken"
data-amount="89"
data-currency="USDT"
crossorigin="anonymous">
</script>Paste this tag anywhere in your page. The script reads the data attributes and does the rest.
What this script does
The script loads LockPay's payment interface. When a customer clicks the button it injects, a secure payment popup opens with the amount and currency you specified in the data attributes.
Your page code does nothing after this point. Coin selection, QR generation, payment verification, and confirmation all run inside the LockPay popup. The popup communicates with LockPay's servers directly.
You own the trigger. LockPay owns the transaction.
Live example
This button is auto-mounted by LockPay from the data-lockpay-mount attribute — no app code wires it.
Live demo — mounted by the LockPay script
The button above was rendered by the LockPay embed script loaded in this page's head. This page wrote no button code and wires no click handler.