=== Accept WooCommerce Crypto Payments (Self-Custodial) ===
Contributors: chainpayments
Tags: crypto payments, bitcoin, usdt, woocommerce, self-custodial
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 10.3
Stable tag: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept Bitcoin, USDT, USDC and ETH in WooCommerce, paid straight into wallets you control. Self-custodial, no KYC, set up in minutes.

== Description ==

Most crypto gateways collect your money first and pay it out later. This one doesn't. With [ChainPayments](https://chainpayments.io), buyers pay BTC, ETH, SOL, USDC, USDT and more on 10 networks directly into wallets you own. We never hold your funds or your keys: we watch the chain and tell your store when a payment is done.

There is nothing to apply for and no KYC. Add your wallet addresses, paste an API key, and your WooCommerce store takes crypto. Fees are small and based on monthly volume, and they're billed separately, so every sale reaches your wallet in full.

How it works in your store:

* At checkout the buyer picks "Pay with crypto" and goes to the ChainPayments checkout.
* There they choose a network and pay from any wallet or exchange.
* ChainPayments sends a signed webhook to your store on every status change. The plugin checks the signature, reads the payment back from the ChainPayments API and updates the order. It never takes the webhook's word for money.
* Once the payment is paid, the buyer is sent back to your order confirmation page.
* Paid in full (or overpaid) completes the order. A short payment puts it on hold with a note. A checkout that expires with nothing paid marks it failed.

Works with the classic checkout and the block checkout, and with High-Performance Order Storage.

= Things to know =

* Checkouts are priced in US dollars, so the gateway only shows while your store currency is USD.
* Your store must be reachable from the internet for webhooks to arrive. A site on localhost won't receive them.
* Developers can point the plugin at another ChainPayments API, such as a staging server, with the `chainpayments_wc_api_base` filter.

== Installation ==

1. Install and activate the plugin (WooCommerce must be active).
2. In your ChainPayments dashboard, add your receiving wallets under Wallets.
3. Create an API key under API Keys.
4. Copy the webhook signing secret from Settings, Webhooks.
5. In WordPress go to WooCommerce, Settings, Payments, ChainPayments. Paste the key and the secret, then enable the gateway.

Each payment carries your store's webhook address, so you don't need to add it to your ChainPayments settings. The address is shown on the plugin's settings screen if you want to add it as an endpoint anyway.

== Frequently Asked Questions ==

= Can I test without real money? =

Yes. Use a key that starts with test_. You can click through the whole checkout and simulate the payment, but test payments never send webhooks, so the order stays pending. Switch to a crypt_ key to go live.

= Who holds the money? =

You do. Buyers pay your own wallet addresses directly.

= What happens if a buyer pays too little? =

The order goes on hold with a note showing what arrived. If the buyer tops up the rest before the session ends, the order completes by itself.

= What if a payment arrives after the checkout expired? =

The order goes on hold for you to review. Late funds are not credited automatically.

= Does the buyer come back to my store after paying? =

Yes. Once the payment is paid, the ChainPayments checkout sends the buyer to your order confirmation page. If they leave the checkout or it expires, they land on the order's payment page and can try again. Your confirmation page only shows the order's current status: it never marks anything paid. That only happens through the signed webhook.

== External services ==

This plugin connects to ChainPayments (https://chainpayments.io) to create payments and read their status. When a buyer chooses ChainPayments at checkout, the plugin sends the order total in USD, the order id, number and key, the buyer's billing email, your store's webhook address and the order's confirmation and payment page addresses. When a webhook arrives, the plugin reads that payment back from the ChainPayments API.

Terms: https://chainpayments.io/terms
Privacy policy: https://chainpayments.io/privacy

== Changelog ==

= 1.0.1 =
* New plugin name and description, and a link to chainpayments.io on the Plugins screen.

= 1.0.0 =
* First release.
