How to accept crypto payments safely on a website
A crypto payment is final. Once a customer pays, there is no chargeback, and once you hand over an order for a payment that never arrived, there is nothing to reverse. A payment gateway takes care of addresses, networks and confirmations, but a few checks on your side decide whether the integration is safe. This guide covers both, using FastPay as the example: PR-SAFE accepts its own payments through it.
How a crypto payment gateway works
Your site creates an invoice through the gateway's API with an amount and an order number. The customer opens the payment page, chooses a coin and a network and sends the money to the address shown. The gateway watches the blockchain, waits for confirmations and notifies your site with a webhook. You deliver the order and withdraw the balance when you need it.
Five checks that protect a shop
- Verify the webhook signature. A notification is trusted only when its signature matches your secret key. Anyone can send a fake request to a public address.
- Confirm the payment with the gateway. Before you deliver, ask the API for the invoice by its ID and check its status yourself.
- Compare the amount and the order. The paid amount, the order number and the invoice ID must match what your site created.
- Grant once. Webhooks are sent again after errors, and a customer may open the return page twice. Mark the order as paid in one database operation so that it can never be delivered twice.
- Do not trust the return page. A customer coming back to your site proves nothing. Deliver only after the confirmed status.
What FastPay offers
- Checkout for websites and Telegram bots. A hosted payment page, payment links and a REST API.
- 16 assets on 12 networks. USDT, USDC, DAI, BTC, ETH, BNB, TRX, SOL, TON and more. The customer pays in what they hold, and you are credited in the same coin.
- Signed webhooks. Every notification carries a signature that your site checks with its secret key.
- One flat fee of 0.5% per payment, with withdrawals the same day.
PR-SAFE runs its own checkout on FastPay. Before a payment unlocks anything, the site checks the webhook signature and then asks FastPay for the invoice, so a forged notification opens nothing.
Accept USDT, BTC, TON and other coins on a website or in a Telegram bot.
Open FastPayHelp customers pay safely
Most lost crypto payments are sent on the wrong network. Show the network next to the address, keep payments on your own domain or the gateway's page, and remind customers that support never asks for a seed phrase or a private key.
Питања и одговори
Can a crypto payment be refunded?
Not by the network: a blockchain transfer is final. A refund is a new transfer from the merchant, so check every payment before you deliver.
What is a signed webhook?
A notification with a signature made with a secret key that only you and the gateway know. Your site computes the signature again and rejects any request where it does not match.
How much does FastPay charge?
One flat fee of 0.5% per payment. Withdrawals go out the same day.