Guide
Accept crypto payments on OpenCart 4
Add USDT, Bitcoin and other coins to your OpenCart 4 checkout with the free AywaPay extension: install, settings, order statuses and testing with a test key.
· 7 min read
The free AywaPay extension adds Pay with crypto to your OpenCart 4 checkout. Customers pay in USDT, Bitcoin, Ethereum and more on the AywaPay payment page, and the extension sets the order status you chose as soon as the payment is confirmed. This guide walks through the install, each setting, what happens to orders, and how to test with a test key.
What the extension does
- Adds Pay with crypto to checkout, with a short note that the customer pays on the secure AywaPay page.
- Keeps prices in your store currency. The payment page converts at the live rate.
- Lets you pick which OpenCart status means paid, pending and canceled.
- Moves orders from signed webhooks only, and adds a note to the order history at every step.
- Reuses the same invoice when a customer comes back to pay, so no second invoice is made.
Before you start
- OpenCart 4.0.2.x or 4.1. OpenCart 3.0 is not supported, because its extension layout is different.
- Your store reachable from the internet over HTTPS, so webhooks can arrive.
- A AywaPay account with a store, from which you'll copy the API key and the webhook signing secret (starts with
whsec_, shown once when you create it under the store's Webhooks tab).
Step 1: upload the extension
- Download
aywapay.ocmod.zipfrom the OpenCart integration page. - In the admin go to Extensions → Installer, upload the file and press Install.
- Go to Extensions → Extensions, choose Payments from the list, find AywaPay (crypto) and press Install, then Edit.
Keep the file name exactly aywapay.ocmod.zip. OpenCart 4 names the extension folder and its routes after the uploaded file, and a renamed file (for example aywapay (1).ocmod.zip from a second download) won't install.
Step 2: the settings
| Setting | What to set |
|---|---|
| API key | Your store's API key from the AywaPay dashboard. A key that starts with test_ creates test invoices only, and the page shows a test mode notice. |
| Webhook signing secret | The whsec_ secret. Orders change only on webhooks signed with it. |
| Paid order status | Set when the payment is confirmed, also when the customer paid more than asked. The default is your first processing status. |
| Pending order status | Set when the customer is sent to the payment page, and while a payment waits for blockchain confirmations. The default is your store's default order status. |
| Canceled order status | Set when the invoice expires or is cancelled without payment. The default is Canceled. |
| Geo Zone | Optional: offer crypto only to customers in a zone. |
| Debug log | Writes invoices and webhooks to storage/logs/aywapay.log. Errors are always logged; keys never are. |
| Status | Turns Pay with crypto on. |
| Sort Order | Where it sits among your payment methods. |
The settings page also shows the Webhook URL. There is nothing to copy: it is sent with every invoice. Your server just has to accept POST requests from the internet at that address.
Pay with crypto shows at checkout when Status is on, both the key and the secret are saved, the customer's address is in the geo zone, and the cart has no subscription products.
What the customer sees
- The customer chooses Pay with crypto and presses Confirm order.
- The extension creates the invoice, sets the order to your pending status and sends the customer to the payment page.
- They pick a coin and network, for example USDT on TRON or BNB Smart Chain, and pay.
- Back to store on the payment page goes to the checkout success page when the order is paid, or back to checkout when it isn't.
What happens to orders
| Payment | Order status |
|---|---|
| Paid in full, or more | Your paid status, and the customer is notified. |
| Payment seen, waiting for confirmations | Stays pending, with a note. |
| Part paid, invoice still open | Stays pending, with a note of the amount still due. The customer can send the rest on the same page. |
| Time ran out after a part payment | Stays pending, with a note. The part that arrived is credited to your AywaPay balance. |
| Expired with nothing paid, or failed | Your canceled status. |
| Price or currency doesn't match the order | Stays pending, with a note to check before shipping. |
| Customer switched to another coin | Nothing changes. The new invoice carries on. |
A paid order is never moved back, only the newest invoice of an order can cancel it, and a repeated webhook changes nothing. Webhooks for one order are handled one at a time.
When an order stays pending after a part payment, read the note in the order history and decide: ask for the rest, ship anyway, or refund from the AywaPay dashboard. Your store's Accept underpayment up to (%) setting lets small shortfalls count as paid. See crypto underpayments and overpayments.
Step 3: test with a test key
- Paste your store's test key (it starts with
test_) into API key and save. Checkout then says it is in test mode. - Place an order and choose Pay with crypto.
- The test payment page has Simulate buttons: paid, overpaid, underpaid and expire. Press paid and check that the order gets your paid status.
- Try the other buttons on new orders and read the order history notes. Notes from test invoices start with
[Test]. - Press Send a test in your store's Webhooks tab to check that webhooks reach your server. It changes no order.
When it all works, paste the live key, pay one small real order yourself, and you're live.
Troubleshooting
| Problem | What to check |
|---|---|
| The upload won't install | The file must be named aywapay.ocmod.zip, and the store must run OpenCart 4. |
| Pay with crypto missing at checkout | Status on, key and secret saved, the geo zone matches, no subscription products in the cart. |
| Order stays pending after paying | Turn on Debug log and read storage/logs/aywapay.log. A signature error means the secret doesn't match or the server clock is off. An empty log means the webhook can't reach your store. |
Uninstalling keeps the table that links orders to invoices, so webhooks for open orders still work after a reinstall.
What it costs
The extension is free. Each payment costs 0.5% plus the coin's network fee. With Store pays you cover both; with Customer pays both are added on top and you receive the full price. Withdrawals to your own wallet cost $0.25 plus the network fee. See pricing.
Frequently asked questions
- Does the extension work on OpenCart 3?
- No. It supports OpenCart 4.0.2.x and 4.1. OpenCart 3.0 uses a different extension layout.
- Can I choose which order statuses are used?
- Yes. You pick the paid, pending and canceled statuses in the extension settings.
- Why did my upload fail?
- Most often the file was renamed. OpenCart 4 builds the extension's folder and routes from the file name, so it must stay
aywapay.ocmod.zip. - Which coins can customers pay with?
- USDT on TRON, BNB Smart Chain and Ethereum, plus BTC, ETH, BNB, TRX, LTC, DOGE and more. The live list is on the supported coins page.