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

Guide

Sell digital products for crypto: licences, courses, e-books

Take USDT and Bitcoin for software licences, online courses, e-books and game items: links, buttons or WooCommerce, delivery after the paid webhook, and wrong amounts.

· 7 min read

Digital products are sold to buyers everywhere, often in small amounts, and delivered in seconds. That fits crypto well. A buyer in any country can pay from their own wallet, you never ship anything, and a confirmed payment can't be reversed weeks later.

This guide covers software licences, online courses, e-books, templates and game items. It shows three ways to take the payment, how to deliver only after the money is really there, and what to do when a buyer sends too little or too much.

Why crypto suits digital products

  • No chargebacks. With cards, a buyer can download the file and then dispute the payment. A confirmed crypto payment can't be pulled back by the payer. Refunds are your decision.
  • Buyers in every country. No card network, bank or currency conversion stands between you and the buyer.
  • Small prices work. USDT on TRON or BNB Smart Chain costs the buyer little to send, which matters for a $9 e-book or a $3 in-game item.
  • Delivery can be automatic. A signed webhook tells your system the moment a payment is confirmed, so a licence key or download can go out without you.

Three ways to take the payment

Payment linkPayment buttonWooCommerce
Needs a websiteNoYes, any site that takes HTMLYes, WordPress with WooCommerce
SetupMake it in the dashboardCopy one line of codeInstall the free plugin
Knows who boughtOnly what the buyer tells youOnly what the buyer tells youYes, the WooCommerce order
DeliveryYou send it, or your system reacts to the webhookYou send it, or your system reacts to the webhookWooCommerce's own downloads, after payment
Good forSales in chat and social media, custom ordersA product page, a landing page, a blogA catalogue of downloads or courses

Payment links: sell without a site

A payment link opens a hosted payment page with your price in US dollars. Send it by chat or email, or post it on social media. Keep one link for a product you sell many times, or make it single-use for a one-off order. The buyer can leave an email for the receipt. You see each payment in your dashboard and get an alert, then send the file, key or access.

Payment buttons: one line on your page

A payment button puts a Pay with crypto button on any page. You set the product name, price, coins, label and colour in the dashboard and paste one line of HTML. It is a plain link with no script, so it works on landing pages, blogs and site builders.

WooCommerce: downloads and courses

If you sell from WordPress, the free WooCommerce plugin adds Pay with crypto at checkout. When the payment is confirmed, the plugin completes the payment on the order. For an order of virtual, downloadable products, WooCommerce then completes it and the buyer gets their download links as usual. A course or membership plugin that unlocks access when an order is paid sees this payment like any other. The setup is in How to add crypto payments to WooCommerce.

Not on WordPress? Plugins for PrestaShop and OpenCart are on the integrations page, and the API works with any custom shop.

Deliver only after the paid webhook

The most important rule for digital goods: send the product after the payment is confirmed, not when the buyer says they paid and not when a transfer first appears. A transfer can be seen on the blockchain before it has enough confirmations.

  1. Create an invoice for your order with your own order_id, so the webhook tells you which order and buyer it is for.
  2. Receive the webhook and check its X-AywaPay-Signature before anything else. The webhook guide has ready code.
  3. Deliver on invoice.paid or invoice.overpaid only. Ignore invoice.confirming and invoice.partially_paid for delivery.
  4. Process each event id once. The same event can arrive twice, and a licence key should not be issued twice.
  5. Answer with a 2xx status. Anything else is retried, so a short outage on your side doesn't lose a sale.
Create an invoice for a licence order
curl -X POST "https://api.aywapay.com/api/v2/invoices" \
  -H "Authorization: Bearer $AYWAPAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"order_id": "lic-5021", "description": "Pro licence, 1 year",
       "price_amount": "39", "price_currency": "USD",
       "customer_email": "[email protected]",
       "callback_url": "https://yourshop.com/webhooks/aywapay",
       "success_url": "https://yourshop.com/thanks"}'

For game items, put the player's account or character in your order record and use that record's id as order_id. When the paid webhook arrives, your game server looks up the order and credits the item. For courses, the same webhook can open the course for the buyer's account.

Links and buttons send their webhooks to the store's Status URL (callback), which you set in the store's invoice settings. Their order ids start with link- or button-. Because they don't carry your own order record, they suit products where you check the sale and deliver by hand.

When a buyer sends too little or too much

Buyers often pay from an exchange that takes its withdrawal fee out of the amount, so a payment can arrive a little short. Every confirmed payment is credited to your balance, whatever the amount and even after the invoice expired. What you deliver is up to you:

StatusWhat happenedWhat to deliver
paidPaid in full and confirmedThe product
overpaidMore than asked; all of it is creditedThe product. Refund the difference from your dashboard if you like
partially_paidPart arrived, the invoice is still openNothing yet. The buyer can send the rest on the same page
underpaidTime ran out with part of the moneyYour choice: ask for the rest, deliver anyway, or refund
cancelledClosed with nothing receivedNothing
  • Set Accept underpayment up to (%) on the store so that a payment a little short still counts as paid and the product goes out without a support ticket.
  • Turn on Let customers pay the rest in another coin so a buyer whose wallet ran dry can finish with another coin.
  • Refunds go from your balance back to the address that paid. See how refunds work.

More on each case in crypto underpayments and overpayments.

Test before you sell

Use your store's test key, which starts with test_. The test payment page has Simulate buttons for paid, overpaid, underpaid and expired, so you can check that your shop delivers on paid and holds back on a part payment. Test webhooks carry "test": true and move no money. See test mode.

What it costs

Links, buttons and the plugins are free. You pay 0.5% per incoming payment plus the coin's network charge, with no setup or monthly fee. Choose Store pays to cover the fees yourself, or Customer pays to add them to the buyer's total. Withdrawals to your own wallet cost $0.25 plus the network fee. Today's numbers are on the pricing page.

Frequently asked questions

When should I send the download or licence key?
After a signed invoice.paid or invoice.overpaid webhook. Don't deliver when a transfer first appears or while it is still confirming.
Does WooCommerce give download access after a crypto payment?
Yes. When the payment is confirmed, the plugin completes the payment on the order, and WooCommerce gives the buyer their download links as it does for any paid order.
What if a buyer sends a little less than the price?
The money that arrived is credited to your balance and the invoice stays open so the buyer can send the rest. You can also set an underpayment margin so a small shortfall counts as paid.
Can I sell without a website?
Yes. Create a payment link in the dashboard and share it by chat, email or social media. The payment page is hosted for you.

Keep reading

Get started

Start accepting crypto today

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