For sites
Pay button
Add a "Pay privately" button to your site with one tag. Your visitor pays from their HYDE balance, and the public does not see who paid you.
See it
Light page
Dark page
Loud page styles
These buttons use a sample address. Put your own in data-to.
Add it to your site
- Copy your address.Open HYDE with the wallet that gets paid. In the wallet menu, press "Copy address".
- Paste the tag.Put it where the button goes. Set the amount and the token, or leave the amount out.
- Done.A visitor presses the button. HYDE opens with the payment filled in. They check it and send.
<script src="https://hydelayer.xyz/widget.js"
data-to="0xYOUR_WALLET_ADDRESS"
data-amount="10"
data-token="USDC"></script>
Options
| Attribute | What it sets |
|---|---|
data-to | Who gets paid. Required. Your wallet address. Open HYDE once with that wallet, so it can get private payments. |
data-amount | The amount. Optional: without it, the visitor types one. |
data-token | The token, for example USDC or HYPE. USDC when left out. |
data-theme | dark for a dark button on a light page or a quiet one on a dark page. |
Add one tag for each button. The button keeps its own look, whatever the styles of your page. It works with a keyboard and a screen reader, and it opens HYDE in a new tab.
What stays public
Your visitor pays from their private balance, so the public does not see who paid you or how much. Your page shows the button and your address, like any payment address you post.
Limits
- Your visitor needs a HYDE balance in that token. If they have none, they add funds first.
- The button fills in the payment. Your visitor still checks it and sends it.
- You see the payment in your own HYDE balance. The button does not tell your site that someone paid.