Skip to content
Private beta · Not open to the public yet. Accounts are by invitation only. Request access →
AywaPay
All articles

Guide

Accept crypto payments on PrestaShop (USDT, BTC)

Add USDT, Bitcoin and other coins to your PrestaShop 8 or 9 checkout with the free AywaPay module: install, settings, order states and testing with a test key.

· 7 min read

PrestaShop shops often sell across borders, and some buyers would rather pay in USDT or Bitcoin than with a card. The free AywaPay module adds a Pay with crypto option to your checkout. Orders wait in their own state while the coins arrive and turn to Payment accepted on their own. This guide covers the install, every setting, what each order state means, and how to test it.

What the module does

  • Adds Pay with crypto to checkout. The customer pays on the AywaPay payment page in USDT (TRC-20, BEP-20 or ERC-20), BTC, ETH, BNB, TRX, LTC, DOGE and more. See the supported coins.
  • Keeps your prices in your shop currency. The payment page converts at the live rate.
  • Creates its own order state, Awaiting crypto payment, and moves orders out of it from signed webhooks.
  • Adds a line to the order's private note in the back office at each step, so you can follow what happened.
  • If the customer closes the payment page, they can open it again from the order confirmation page. The module reuses the same invoice while it can still be paid.

Before you start

  • PrestaShop 8.x or 9.x on PHP 7.4 or newer.
  • Your shop reachable from the internet over HTTPS, so webhooks can reach it.
  • A AywaPay account with a store, from which you'll copy the API key and the webhook signing secret.

Step 1: upload the module

  1. Download aywapay-for-prestashop.zip from the PrestaShop integration page. Don't unzip it.
  2. In the back office go to Modules → Module Manager and click Upload a module.
  3. Choose the zip. PrestaShop installs it and creates the Awaiting crypto payment order state.

Step 2: copy your key and secret

  1. In the AywaPay dashboard open your store, then API, and copy the API key.
  2. Open the store's Webhooks tab and create the webhook signing secret. It starts with whsec_ and is shown once.

Step 3: configure the module

Go to Modules → AywaPay → Configure. There are four settings:

SettingWhat it does
API keyYour store's API key. A key that starts with test_ creates test invoices only, and the page shows a test mode warning.
Webhook signing secretThe whsec_ secret. Orders change only on webhooks signed with it.
Invoice expiry (minutes)Optional, 10 to 10080. Empty uses your AywaPay store's setting (60 minutes by default).
Debug logWrites invoices and webhooks to Advanced Parameters → Logs. Errors are always logged; keys never are.

Save. Once a key and secret are saved, the fields stay empty on reload and show only the last characters of the saved key. Leave them empty to keep what is saved.

The settings page also shows the webhook address. You don't need to copy it anywhere: it is sent with every invoice.

Pay with crypto only shows for the currencies you tick for the module under Payment → Preferences. If it doesn't appear at checkout, check that list first.

What the customer sees

  1. At checkout the customer chooses Pay with crypto and confirms the order.
  2. The order is saved in Awaiting crypto payment and the customer goes to the AywaPay payment page.
  3. They pick a coin and network and pay. The page shows the exact amount, the address, a QR code and a countdown.
  4. Back to store on the payment page opens the order confirmation page. While the order is still unpaid, that page shows Open the payment page.

If AywaPay can't be reached at the moment of checkout, the order stays saved and the confirmation page shows Try again, so the sale isn't lost.

Order states, step by step

PaymentOrder state
Paid in full, or morePayment accepted. The AywaPay invoice id is saved as the payment's transaction id.
Payment seen, waiting for confirmationsStays Awaiting crypto payment, with a note.
Part paid, invoice still openStays Awaiting crypto payment, with a note of the amount still due. The customer can send the rest on the same page.
Expired with nothing paidCanceled.
Time ran out after a part paymentPayment error, to check by hand. The part that arrived is credited to your AywaPay balance.
Price or currency doesn't match the orderPayment error, to check by hand.
Customer switched to another coinNothing changes. The new invoice carries on.

A few rules keep orders safe. A paid order is never moved back. Only the newest invoice of an order can cancel it, and only while it is still awaiting payment, so a state you set by hand is never overwritten. A repeated webhook changes nothing.

When an order ends in Payment error after a part payment, you decide: ask the customer for the rest, ship anyway, or refund from the AywaPay dashboard. The store setting Accept underpayment up to (%) lets small shortfalls count as paid. Read crypto underpayments and overpayments for the details.

A cart split over several carriers becomes several PrestaShop orders with one reference. One AywaPay invoice pays for all of them.

Step 4: test with a test key

  1. Paste your store's test key (it starts with test_) into API key and save.
  2. Place an order on your shop and choose Pay with crypto.
  3. The test payment page has Simulate buttons: paid, overpaid, underpaid and expire. Press paid and check that the order moves to Payment accepted.
  4. Place more orders and try the other buttons. Read the order's private note after each one.
  5. Press Send a test in your store's Webhooks tab. The module answers that your store is connected and changes nothing.

Test webhooks carry "test": true and no money moves. When everything works, paste the live key, pay one small real order yourself, and you're ready.

Troubleshooting

ProblemWhat to check
Pay with crypto missing at checkoutBoth the API key and the signing secret must be saved, and the order currency must be ticked for the module in Payment → Preferences.
Order stays Awaiting crypto paymentTurn on Debug log and look in Advanced Parameters → Logs. A signature error means the secret doesn't match your store's or your server clock is off. No entry means the webhook can't reach your shop.
Need to refundRefund from the invoice in the AywaPay dashboard. The customer is paid back in the coin they used.

Uninstalling removes the settings but keeps the invoice table and the order history, so old orders keep their notes and a reinstall picks up open invoices.

What it costs

The module is free. Each payment costs 0.5% plus the coin's network fee. Choose Store pays to cover both yourself, or Customer pays to add them on top so you get the full price. Withdrawals to your own wallet cost $0.25 plus the network fee. See pricing.

Frequently asked questions

Does the module work on PrestaShop 8 and 9?
Yes, PrestaShop 8.x and 9.x on PHP 7.4 or newer. Download it from the PrestaShop integration page.
Which order state means I can ship?
Payment accepted. The module sets it only after the payment is confirmed on the blockchain.
What if a customer closes the payment page?
The order stays in Awaiting crypto payment. The order confirmation page shows Open the payment page, and the same invoice is reused while it can still be paid.
Can I try it without real money?
Yes. Paste a key that starts with test_ and use the Simulate buttons on the test payment page.

Keep reading

Get started

Start accepting crypto today

  1. 01Request access
  2. 02Get your invite by email
  3. 03Add your store and get paid