How to accept cryptocurrency payments on your website
Accepting crypto on a website comes down to one thing: each order needs its own way to be paid, and your site needs to know when it was. A crypto payment gateway does both. Here are the three ways to set it up with easyway, from no code at all to a full API integration, and what happens to the money afterwards.
Why a gateway instead of a wallet address on the page
You can paste a wallet address on your checkout page, but then you have to match every incoming transfer to an order by hand, guess which customer sent which amount, and notice when someone sent too little or on the wrong network. A crypto payment processor gives each order its own address (or a memo, on TON and XRP), quotes an exact amount, waits for enough confirmations — 1 to 64 blocks depending on the coin — and then tells your site the order is paid.
Three ways to accept crypto on a website
| Option | Code needed | Good for |
|---|---|---|
| Payment link | None | Freelancers, one-off invoices, a few products, donations |
| Hosted checkout via the API | A few lines on your backend | Online stores and SaaS with their own checkout |
| Plugin for your store platform | None (install + paste keys) | WooCommerce, PrestaShop, OpenCart, Magento 2, WHMCS, Blesta, Odoo (beta) |
1. A payment link (no code)
In the dashboard, create a payment link with a fixed price or let the customer type an amount within limits you set. Share the link anywhere — your site, an email, a chat. Each visit opens a fresh invoice, so two customers never share an address. A product link can also show a text or hand out a unique code (a licence key, for example) once the invoice is paid, and a donation link adds an on-stream alert widget.
2. A hosted checkout from your backend
When the customer clicks "Pay with crypto", your server creates an invoice and sends the customer to its payment_url. Prices can be in USD; the customer then picks one of 69 coins on 12 networks, and the crypto amount is locked at that moment. If you only want stablecoins (16 of the supported assets are USD stablecoins such as USDT and USDC), pass allowed_assets. Each coin has its own page with its confirmations, fee and minimum — for example USDT on TRON, Bitcoin and Litecoin.
curl https://api.easyway.cash/v1/invoices \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1234" \
-d '{
"amount": "49.00",
"currency": "USD",
"order_id": "1234",
"success_url": "https://shop.example/thanks",
"cancel_url": "https://shop.example/cart"
}'
# → { "id": "…", "status": "pending", "payment_url": "https://easyway.cash/pay/…", … }Then listen for the invoice.paid webhook, check its signature and fulfil the order. The USDT TRC-20 guide has the full code in Node.js, PHP and Python, and this guide covers the signature check. For a PHP site there is a complete, tested walkthrough: accepting crypto payments in PHP.
3. A plugin for your platform
If your store runs on WooCommerce, PrestaShop, OpenCart, Magento 2, WHMCS, Blesta, Odoo, download the plugin for it, install it like any other extension and paste your API key and webhook signing secret in its settings. The plugin creates the invoice when the customer picks crypto at checkout and marks the order paid when the signed webhook arrives. The plugins are in beta, so run one test-mode order on your store before switching to live. On any other platform, use a payment link or the API — both work with any site.
Which one should you pick?
No developer and a handful of products or invoices: a payment link. A store on one of the platforms above: its plugin. Your own checkout or a SaaS: the API (see crypto payments for SaaS for renewals and top-ups), so the order id, amount and redirect URLs come from your code. You can mix them — payments from every source land in the same balance, and the dashboard filters them by store or link.
What happens after the customer pays
The invoice is open for 60 minutes by default (you can set 5 minutes to 24 hours). Once the transfer has its confirmations, the invoice becomes paid and your site gets the webhook. If the customer sent a little less, a 1 % underpayment tolerance (adjustable from 0 to 5 %) still counts it as paid; beyond that the invoice becomes underpaid and the customer can send the rest. The details are in handling underpaid and late payments.
easyway deducts a 0.5% fee from each confirmed payment and credits the rest to your balance. That balance is held by easyway until you withdraw it to one of your own whitelisted wallets; each withdrawal pays a fixed network fee per coin, listed on the pricing page.
Step by step
1. Sign up and turn on two-factor authentication. 2. Pick your option from the table above: a payment link, your platform's plugin, or the API. 3. In test mode, create the link or test key and pay one invoice (next section). 4. Whitelist the wallet you will withdraw to. 5. Switch to live keys or a live link and put it on your site.
Test before going live
Create a test key (sk_test_…) and run the whole flow without real money: the dashboard can mark a test invoice paid, underpaid or paid late so you see every webhook your code must handle. The sandbox guide walks through it.
Common questions
Do I need my own crypto wallet to accept payments? Not to start. Payments are credited to your easyway balance; you need a wallet address of your own only when you withdraw, and live withdrawals go only to addresses you have whitelisted.
Which cryptocurrencies can my website accept? 69 coins on 12 networks: USDT, TRX, BNB, GRAM, ETH, BTC, LTC, DOGE, USDC, XRP, SOL, POL, AVAX, DAI, FDUSD, DASH, SHIB, PEPE, BONK, NOT, PYUSD, DOGS, CATI, HMSTR, WIF, LINK, UNI, AAVE, ONDO, ENA, CRV, GRT, SKY, USDS, USDe, MNT, ARB, WLD, MANA, SAND, IMX, GALA, FET, JASMY, SPX, XCN, APE, AXS, CHZ, 1INCH, PENDLE, ETHFI, ZRO, BAT, LPT, ZRX, SUSHI, CAKE, TWT, RENDER, JUP, PYTH, JTO, RAY, W, FARTCOIN, TRUMP, PENGU, POPCAT. You can limit an invoice to some of them, for example stablecoins only.
Can I accept crypto payments on my website without coding? Yes. Put a payment link behind a "Pay with crypto" button, or install one of the store plugins (currently in beta). The API is only needed for your own checkout.
What does it cost? A 0.5% fee on each confirmed payment, plus a fixed network fee per coin when you withdraw. There is no monthly fee.