=== Intents Checkout – Crypto Payments for WooCommerce ===
Contributors: intents
Tags: crypto payments, payment gateway, usdt, bitcoin, stablecoin
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept crypto from Bitcoin, Ethereum, Solana, Tron and more. Get paid in USDC or USDT, straight to your own wallet. Non-custodial.

== Description ==

**Your customers pay with the crypto they already hold. You receive one stablecoin, in your own wallet.**

Intents Checkout adds a crypto payment option to WooCommerce. A customer can pay with USDT on Tron, native Bitcoin, SOL, ETH on any major network, and more. You choose the one asset you want to receive, for example USDC on Base or USDT on Tron, and every payment arrives as exactly that, sent directly to your wallet.

We never hold your money. Each payment is filled by independent liquidity networks and delivered straight to the address you set. There are no balances to withdraw and no payouts to wait for.

= What your customers see =

* **The price first.** The order total is the first thing on the payment page, then the way to pay, with the cheapest option they hold already selected.
* **Plain language.** One all-in amount to send, the network to send it on, and a clear warning not to use any other.
* **Two ways to pay.** Connect a wallet (MetaMask, Phantom, TronLink and other browser wallets), or send from an exchange with a QR code and the exact amount.
* **A safety net.** Customers give a refund address before sending from an exchange, so a payment that cannot be completed goes back to them automatically.

= Why intents.fi =

* **More than one network behind every payment.** Each payment is quoted across six independent liquidity networks (NEAR Intents, Relay, Across, deBridge, LI.FI and UniswapX), and the best one fills it. If one network is slow or down, checkout keeps working.
* **The exact amount, every time.** A $49.00 order delivers $49.00 of your settlement asset, less the stated fee.
* **Non-custodial.** Funds go from the customer, through the filling network, to your wallet. intents.fi never takes custody.
* **Your brand.** Set your logo, colours, fonts and corners for the payment page in the dashboard.

= Features =

* Customers pay with tokens on Bitcoin, Ethereum, Solana, Tron, Base, Arbitrum, BNB Chain, OP Mainnet, Polygon, Avalanche and more
* You settle in USDC (Base, Arbitrum, Ethereum, Solana, Polygon) or USDT (Tron, Ethereum, Arbitrum, BNB Chain)
* Underpayments handled: the customer is shown the exact remaining amount and can top up to the same address
* Orders are marked paid only by a signed confirmation from intents.fi, and only once your funds have been delivered. A customer returning to your store never marks an order paid
* Late payments (after the payment window closed) are put **On hold** with a note, so you decide whether to fulfil
* Works with the WooCommerce **Cart and Checkout blocks** and the **classic checkout**
* Compatible with High-Performance Order Storage (HPOS)
* Test mode with test keys, so you can place orders without moving real funds
* Email notifications for payments received and anything that needs your attention
* A merchant dashboard at dashboard.intents.fi with every payment, its status and its transactions

= How it works =

1. At checkout the customer chooses **Pay with crypto**.
2. The plugin creates an intents.fi invoice for the order total and sends the customer to the secure payment page.
3. The customer picks how to pay and pays from their wallet or exchange.
4. A liquidity network converts the payment and delivers your settlement asset to your wallet.
5. intents.fi sends a signed webhook to your store, and the order moves to **Processing**.

= Who it's for =

Stores that sell to crypto holders anywhere in the world: digital goods, software and SaaS, games, travel, and physical products shipped internationally.

**Not available to merchants in Indonesia**, where crypto may not be used as a means of payment. Merchants are responsible for checking that accepting crypto payments is allowed where they operate.

= External services =

This plugin is a connector to **intents.fi**, a third-party payment service operated by intents.fi. It cannot take payments without it, and it needs an intents.fi account and API key.

It connects to three intents.fi hosts:

* **api.intents.fi** — the intents.fi API. Called from your server:
  * **When an order is placed with this payment method:** the plugin sends the order total and currency, a reference made from the order ID and a short code for your store (`order_<id>-<code>`), a short description ("Order 1042 at <your store name>"), the order-received and order-pay URLs to return the customer to, the customer's billing email address (if they gave one, for their receipt), and the order ID, number and order key, your site URL and the plugin version (so a payment can be matched back to its order).
  * **When a customer returns to pay an order that already has a payment:** the plugin asks the API for that payment's status, so it never creates a second one for a paid order.
  * **When an order's total changes before it is paid:** the plugin closes the earlier payment through the API.
  * **When you press "Test connection" in the settings:** the plugin asks the API which merchant account your key belongs to.
  * **When you come back from Connect intents.fi:** the plugin sends the one-time code it was given, a secret it made when you pressed Connect, and your site URL, and receives your keys. It then registers your store's webhook URL with the new key.
  * **When you press "Disconnect":** the plugin asks the API to revoke the keys Connect made.
  * Every other request is authenticated with your intents.fi secret API key.
* **dashboard.intents.fi** — the intents.fi dashboard. When you press **Connect intents.fi** or **Go live**, your browser is sent there with your site URL, the address to return to, the mode (test or live) and two random values the plugin made for this request. You sign in and approve there; nothing is sent from your server.
* **pay.intents.fi** — the hosted payment page. The customer's browser is sent there to pay, and the page talks to intents.fi directly. Wallet and refund addresses the customer enters or connects there are used only to complete or refund the payment.

intents.fi sends payment status updates (webhooks) back to your store's REST endpoint, `/wp-json/intentsfi/v1/webhook`, signed with your webhook secret. The plugin rejects any it cannot verify.

To fill a payment, intents.fi passes the payment details it needs (amounts, assets, destination and refund addresses) to the liquidity network that fills it: NEAR Intents, Relay, Across, deBridge, LI.FI or UniswapX.

intents.fi terms of service: https://intents.fi/terms
intents.fi privacy policy: https://intents.fi/privacy

= Source code =

The block checkout script ships compiled in `build/`. Its human-readable source is included in this plugin, in `src/index.js`, with the build configuration (`package.json`, `webpack.config.js`). To rebuild it, from the plugin folder run `npm install` and then `npm run build` (Node.js 20 or later). This uses `@wordpress/scripts` and `@woocommerce/dependency-extraction-webpack-plugin`. All PHP ships uncompiled.

= Documentation and support =

* Docs: https://intents.fi/docs/checkout/woocommerce
* Support, by email only: support@intents.fi

== Installation ==

1. In WordPress, go to **Plugins → Add New Plugin**, search for **Intents Checkout**, then install and activate it. WooCommerce must be active.
2. Go to **WooCommerce → Settings → Payments → Intents Checkout** and press **Connect intents.fi**.
3. Sign in to (or sign up for) the intents.fi dashboard and approve the connection. You come back to WordPress connected in test mode, with your keys and payment notifications set up. Nothing to copy.
4. Tick **Enable Intents Checkout**, save, and place a test order. The order moves to **Processing** when the test payment completes.
5. When your intents.fi account is ready for live payments, press **Go live**. The store switches to live mode only when that round trip finishes.

Prefer to paste keys? Under **Enter keys manually**, paste your `ik_test_…` key from the dashboard, add the **Webhook URL** shown there on the dashboard's **Webhooks** page, paste the `whsec_…` secret it shows, and press **Test connection**.

Your store currency must be US dollars (USD): the payment method stays hidden at checkout otherwise.

== Frequently Asked Questions ==

= Do you hold my funds? =

No. Payments are delivered by the filling network straight to the wallet address you set in the dashboard. intents.fi never has custody of your money.

= Which coins can my customers pay with? =

Major tokens on Bitcoin, Ethereum, Solana, Tron, Base, Arbitrum, BNB Chain, OP Mainnet, Polygon, Avalanche and more. The payment page only shows options that can be filled for the order amount at that moment.

= What do I receive? =

One asset that you choose: USDC or USDT on a supported network. Every payment arrives in that asset, whatever the customer paid with.

= What does it cost? =

0.4% of each completed payment, with no setup, monthly or fixed per-payment fee. The fee is shown on every payment in your dashboard. Test mode is free.

= When is an order marked paid? =

Only when intents.fi confirms that your settlement asset has been delivered to your wallet. A payment that has been sent but not yet delivered adds an order note and leaves the order unpaid.

= What happens if a customer sends the wrong amount? =

If they send too little, the payment page shows the exact remaining amount to send to the same address. If a payment can't be completed, it is returned to the customer's refund address. If they send too much, the order is marked paid and the extra is flagged in your dashboard.

= What if a customer pays after the payment window has closed? =

The money still reaches your wallet. The order is put **On hold** with a note and a notice in WordPress admin, because it may already have been cancelled and its stock released. You decide whether to fulfil it.

= How do refunds work? =

Payments are non-custodial, so a refund is sent from your own wallet. Refunding an order in WooCommerce records it there but does not move any funds. A payment that cannot be completed is returned to the customer automatically, without you doing anything.

= Can customers pay from an exchange like Binance or OKX? =

Yes. They choose to pay from an exchange or other wallet, then send the exact amount on the network shown. They are asked for a refund address on that network first.

= Are there chargebacks? =

No. Crypto payments can't be reversed by the payer.

= Does it work with the block checkout? =

Yes. It supports both the Cart and Checkout blocks and the classic shortcode checkout.

= Do I need to verify my business? =

Yes, lightly: your legal name, website, country and a contact.

= Where do I get help? =

Email support@intents.fi. Support is by email only.

== Screenshots ==

1. "Pay with crypto" at WooCommerce checkout (block checkout).
2. The payment page: the order total first, then the way to pay.
3. Payment confirmed, returning the customer to your store.
4. Plugin settings in WooCommerce → Payments.

== Changelog ==

= 0.1.1 =
* The "Pay with crypto" option at checkout now shows the coin strip (USDT, USDC, ETH, SOL, BTC and more) instead of the logo.
* Updated plugin icon and screenshot.

= 0.1.0 =
* Connect intents.fi: connect your store in a few clicks, with no keys to copy. Keys and payment notifications are set up for you; Go live and Disconnect from the same screen. Manual key entry still works.
* First release: crypto payments for WooCommerce with block and classic checkout support, test mode, HPOS compatibility and signed webhook confirmations.
* Late payments are put on hold for the merchant to decide, never completed automatically.
* A customer returning to an order whose payment has already gone through is never asked to pay again.
* Payments are matched to your store and order, so two stores on one intents.fi account never share a payment.

== Upgrade Notice ==

= 0.1.1 =
A clearer payment icon at checkout. No settings change.

= 0.1.0 =
First release.
