Crypto payment API integration.
Custom-built sites and apps can integrate payments directly through an API instead of a plugin. Here is how a typical crypto payment integration fits together.
The basic flow
- Your server asks the API to create a payment for an order, with the amount and your payout wallet.
- The API returns a payment address or checkout URL.
- Your site shows the address and QR code, or redirects the customer to the hosted checkout.
- When the payment is confirmed, the API sends a callback to your server.
- Your server verifies the callback and marks the order paid.
What to build carefully
- Callback verification. Always verify callbacks before fulfilling orders.
- Idempotency. Handle duplicate callbacks without double-fulfilling.
- Timeouts. Decide how long a payment request stays valid.
- Partial payments. Decide how to handle underpayment and overpayment.
- Logging. Store every request, callback and status change for support and disputes.
The Risksless API
The Risksless card flow is two GET requests plus a callback to your server, with no API key: every request is bound to the USDC Polygon payout wallet you pass. The API documentation includes examples in JavaScript, Python, cURL and PHP, and a PHP SDK is on the modules page.
The main endpoints
| Endpoint | What it does |
|---|---|
| GET /control/wallet.php | Creates a card tracking address bound to your payout wallet and callback URL |
| checkout.risksless.com/pay.php | Hosted multi-provider checkout, the recommended redirect |
| GET /control/provider-status/ | Lists card providers with their status and minimum amounts |
| GET /control/convert.php | Converts EUR, GBP, CAD, INR and other amounts to USD |
| GET /crypto/{ticker}/wallet.php | Creates a one-time crypto address that forwards to your wallet |
| GET /crypto/{ticker}/qrcode.php | Returns a QR code image for a receiving address |
API calls go to api.risksless.com and the hosted checkout runs on checkout.risksless.com. Parameters and examples are in the API documentation.
Callback handler checklist
- Use an HTTPS callback URL that only your server handles.
- Check that the amount and order reference match what you expected.
- Record the transaction hash against the order.
- Respond quickly, and do slow work such as sending emails afterwards.
- Alert yourself when callbacks stop arriving, so a firewall change does not leave orders stuck.
Currencies, minimums and errors
If your prices are in euros, pounds or another currency, convert them to USD with the conversion endpoint before creating a payment, and check the provider status endpoint for current minimums. Plan for the unhappy paths too: a provider may not serve a customer's country, a payment may expire, or a callback may arrive late. Show a clear message and a way to try again, and never mark an order paid until a verified callback arrives.
Testing before launch
- Run a small real payment end to end.
- Simulate a failed and an expired payment.
- Send a duplicate callback and check nothing is fulfilled twice.
- Confirm funds arrive in the wallet you configured.
- Check that customers see clear status messages throughout.
When to use a plugin instead
If you run WooCommerce, WHMCS, OpenCart or PrestaShop, a plugin saves development time. See WooCommerce and WHMCS.
Frequently asked questions
Do I need an API key for Risksless?
No. Requests are bound to your payout wallet address.
Which languages are supported?
Any language that can make HTTP requests. The docs show JavaScript, Python, cURL and PHP.
How are callbacks secured?
Callbacks carry a signature you verify on your server. See the API docs for details.
Can I call the API from the browser?
Yes. The API returns JSON and sends CORS headers, so it works from a browser or a server. Keep callback handling on your server.
Does the API handle crypto as well as cards?
Yes. The crypto endpoints create one-time receiving addresses for each coin, return QR codes and convert fiat amounts into coin amounts.
Related guides
- Accept Bitcoin payments
- Accept USDT payments
- Accept USDC payments
- Accept Ethereum payments
- Accept Solana payments
- WooCommerce crypto and card payments
- WHMCS crypto and card payments
- OpenCart crypto and card payments
Last reviewed 2026-11-21. This guide is general information, not legal, tax or financial advice. Use of Risksless is subject to our Acceptable Use Policy.
Accept cards, get paid in USDC.
Free to start. Install a plugin or create a payment link and take your first card payment today. Use is subject to our Acceptable Use Policy.
OPEN CARD GATEWAY →