
Pick a button
Choose how it looks
Twelve ready-made buttons, from a plain dark one to a Dogecoin badge. The code updates as you pick.
- Pay, Donate or Tip wording
- Dark, yellow or outlined
- Add an amount or a label if you want one
What you get
No shop software and no developer. Two lines of code add a button that opens a payment window.

Pick a button
Twelve ready-made buttons, from a plain dark one to a Dogecoin badge. The code updates as you pick.

Paste your address
Paste the address that should receive your payments. The builder checks it and tells you if something is off.
<script src="https://dogejs.com/pay.js" defer></script>
<doge-pay mode="button" address="YOUR ADDRESS"></doge-pay>Copy two lines
Copy the code the builder gives you and paste it where you want the button. That is all.

Where to paste
Paste the two lines into a Custom HTML block (WordPress) or a code block or embed (Shopify, Squarespace), or straight into a page you edit yourself.

What your customer sees
Pressing the button opens a window with the amount, a QR code and a button for the DogeJS wallet.
How it works
The address that should receive your payments.
Choose the style and wording you like.
Paste them into your page. Done.
Questions
No. There is no DogeJS account and no fee. The buyer pays the normal Dogecoin network fee from their wallet and the full amount reaches your address.
Open any Dogecoin wallet, choose Receive and copy the address that starts with D. The builder's "I don't have one yet" link walks through it, and the DogeJS wallet is one option. Keep your recovery phrase to yourself: the builder refuses a phrase or private key if you paste one.
Yes: use a test-network address (it starts with n) and the builder sets network="testnet". Test coins have no value.
Not by itself. Without api the button makes no requests. Check your wallet, or add api and listen for doge-pay:confirmed, as in the developer docs.
Yes: button-label, button-style and the CSS custom properties are described in the Pay button docs.
Yes, and for a checkout page it is the better choice. Copy the file, change the src, and update it when you want a new version.
For developers
What the button does, where it goes, and how to know you were paid.
<script src="https://dogejs.com/pay.js" defer></script>
<doge-pay mode="button" address="YOUR ADDRESS"></doge-pay>The first line loads pay.js, one static file that defines a custom element called <doge-pay>. The second line is the element. With mode="button" it draws only a button; pressing it opens a window with a QR code, the amount if you set one, and buttons for wallets that can pay. The buyer pays from their own wallet straight to your address.
api option the button makes no network requests at all.D; the builder adds network="testnet" for test-network addresses.pay.js from https://dogejs.com/pay.js. If you would rather not depend on another host at checkout, copy the file to your own server and change the src (see the Pay button docs).Anywhere that lets you add your own HTML to a page and does not strip <script> tags.
| Where | How |
|---|---|
| A plain HTML page | Paste the two lines where you want the button to appear. The script line can also go in the <head>. |
| WordPress | Add a Custom HTML block and paste the code. Some security plug-ins and the editor for users without the unfiltered HTML right remove script tags; in that case ask a site administrator. |
| Shopify, Squarespace | Add a code block (or embed) and paste the code, as the builder suggests. Which blocks accept a script depends on your plan and theme, and these builders change their editors from time to time; check the button appears on the published page, not only in the editor. |
| Other site builders | Look for a block called HTML, code or embed. If it only accepts a link or an iframe, the button cannot run there: use a payment link instead. |
The snippets below were tested on plain HTML pages only. How individual site builders treat scripts is theirs to decide and is not something this page can promise.
Out of the box the button shows the buyer the payment window and nothing else: it never talks to the network, so it cannot tell you that money arrived. Your wallet (or any block explorer) shows the payment on your address. To have the page itself notice, add api, the base URL of an Esplora-style server you run or trust. The window then polls it, shows the green check by itself and fires a doge-pay:confirmed event.
That check runs in the buyer's browser and trusts the server's answer, so it is a convenience for the buyer. If you ship goods or unlock content, confirm the payment on your own side first: see Knowing when you are paid and Backends.
These three snippets were loaded in Chrome from a test page that serves pay.js from the same folder, with a stand-in Esplora server on the Dogecoin test network. In your page use https://dogejs.com/pay.js and your own address. Test-network addresses start with n; leave out network="testnet" for a real D address.
<script src="pay.js?v=202611291136" defer></script>
<doge-pay mode="button" address="nqmUZf2kiEYGH5ggBuRewS4EpHBg3kXWkH" network="testnet"></doge-pay>Result
Button label: Pay with DOGE
Payment link in the window: dogecoin:nqmUZf2kiEYGH5ggBuRewS4EpHBg3kXWkHWith no amount the customer chooses how much to send, and any payment counts.
<script src="pay.js?v=202611291136" defer></script>
<doge-pay mode="button" address="nbvvdX6itqsmT8sBCFAQwafyYjzZcCnMWK" network="testnet" button-style="pill" amount="25" label="Order 1042"></doge-pay>Result
Button label: Pay 25 DOGE
Payment link in the window: dogecoin:nbvvdX6itqsmT8sBCFAQwafyYjzZcCnMWK?amount=25&label=Order%201042The amount is DOGE as plain decimal text (up to 8 decimals). The label is percent-encoded into the link and shown in the window.
<script src="pay.js?v=202611291136" defer></script>
<doge-pay mode="button" address="nnd8pQuUHY7AMMVDqocZfrkCGHgppbLnt2" network="testnet" amount="25" label="Order 1042"
api="http://127.0.0.1:9077" poll="1" since="1"></doge-pay>
<script>
document.addEventListener('doge-pay:confirmed', (e) => {
console.log('paid', e.detail.txid.slice(0, 8), String(e.detail.amountKoinu), 'koinu');
});
</script>The test sent 25 DOGE to the address, then mined a block (poll="1" checks every second; the default is 10 and confirmations defaults to 1). The stand-in chain's blocks carry old time stamps, so the test also sets since="1"; on the real network leave both out.
Output
paid b25c7c0f 2500000000 koinuamountKoinu is a bigint, so convert it with String() before JSON.stringify. 1 DOGE is 100,000,000 koinu.
The builder's Advanced dialog sets the amount and label. Everything else is an attribute you add by hand: button-style (solid, yellow, outline, plaque, plaque-dark, pill, coin), button-size, button-label, button-block, theme, confirmations, expires, api and more. They are listed and checked in the Pay button reference; this page does not repeat them. For the buttons themselves, see the button styles.