How to Accept Bitcoin Payments on OpenCart
OpenCart's extension model makes it straightforward to add a payment method that redirects to a hosted invoice. Because OpenCart stores are frequently run by merchants in regions where card processing is difficult, self-custodial crypto is often more than a convenience.
- Integration method
- REST API
- Time needed
- About 30 minutes
- Skill level
- Intermediate
Before you start
- •A free PayCryptoHost account.
- •Your Bitcoin extended public key (xPub / zPub) from a wallet you control — Sparrow, Electrum, BlueWallet, Trezor or Ledger all export one.
- •Admin access to your store or billing panel.
- •OpenCart 4.x with FTP or file manager access.
An extended public key only lets software watch addresses and derive new ones — it can never move funds. Never paste a private key or seed phrase anywhere, including here.
Step-by-step setup
- 1
Prepare your account
Verify your xPub and create an API key in PayCryptoHost.
- 2
Add a payment extension
Create a payment extension that posts the order total to the invoice endpoint and redirects the buyer to the returned payment URL.
- 3
Add a callback controller
Point your PayCryptoHost webhook at the controller and update the order status when the payment confirms.
- 4
Enable and sort
Under Extensions → Payments, enable it and set the sort order so it appears where you want at checkout.
- 5
Test end to end
Place a small live order and confirm the status moves from Pending to Processing to Complete.
What you get
- •Works in markets where card acquiring is restricted or expensive.
- •No chargebacks on confirmed on-chain payments.
- •Coins settle to your own wallet immediately.
- •No monthly platform fee.
Troubleshooting
Callback returns a 404
OpenCart 4 route names differ from 3.x. Confirm the route path matches your version before assuming the webhook is at fault.
Order total mismatch
Send the total in the store's base currency and let PayCryptoHost quote the crypto amount, rather than converting client-side.
Frequently asked questions
Does OpenCart support Bitcoin payments?
Not natively, but a small payment extension plus PayCryptoHost hosted invoices adds BTC, ETH and USDT with self-custodial settlement.
Can I keep cash on delivery alongside it?
Yes, payment methods in OpenCart are independent of each other.
Ready to take your first crypto payment?
Create an account, add your xPub, and send a test invoice — most merchants are live the same day.
Other platform guides
See all platform integrations, browse industry guides, or compare us against other gateways.