# Crypto payments plugin (WooCommerce)

**OnCharge Crypto Payments** (version 1.5.0) adds OnCharge's Crypto payments and Card to Crypto (card, Cash App and Venmo) to WooCommerce: four payment methods and pays each one out to your own wallet, in USDC on Polygon, as soon as it settles. No OnCharge account, application or API key is needed. With an OnCharge account you can also [see every payment in your dashboard](#dashboard).

| Method | How the customer pays |
|---|---|
| **OnCharge Card** | Debit or credit card on a licensed card checkout page, opened in a new tab. |
| **OnCharge Cash App** | Cash App, on a payment page shown in your checkout (with a link to open it separately). |
| **OnCharge Venmo** | Venmo, on a payment page shown in your checkout (with a link to open it separately). |
| **OnCharge Crypto** | The customer picks a coin and network (40+ options, including BTC, ETH, SOL, USDT and USDC), then pays the exact amount shown, with a QR code and copy buttons. |

Every payment is converted to native USDC on Polygon and split in one transaction: **91% to your wallet, 8% to OnCharge, 1% network gateway fee.** Provider, exchange and network fees are additional. The 8% is enforced by the plugin's payment service and has no merchant setting.

**Requirements:** WooCommerce 8.0+, PHP 8.1+, a store priced in **USD**, and a Polygon wallet you control. Classic checkout, Checkout Blocks and High-Performance Order Storage (HPOS) are supported. Order totals from **$2.00 to $50,000**.

## Install

1. Download the plugin: [oncharge.io/downloads/oncharge-crypto-payments.zip](https://oncharge.io/downloads/oncharge-crypto-payments.zip).
2. In WordPress, go to **Plugins → Add New → Upload Plugin**, choose the ZIP, then **Install Now** and **Activate**.

```bash title="Or with WP-CLI"
wp plugin install https://oncharge.io/downloads/oncharge-crypto-payments.zip --activate
```

### Updates {#updates}

From version 1.3.0 the plugin updates itself: WordPress checks OnCharge for new versions and installs them in the background. Every update is signed with OnCharge's update key, and its checksum is verified before it is installed, so a changed or unsigned package is refused. Automatic updates are on by default. To install updates yourself instead, select **Disable auto-updates** next to the plugin on the **Plugins** screen; WordPress then shows each update for you to install.

Sites on 1.2.0 or earlier install 1.3.0 by hand once, by uploading the ZIP above and choosing **Replace current with uploaded**. Later versions arrive on their own.

## Configure

Go to **WooCommerce → Settings → Payments**. Each method is its own payment method with its own switch, so you offer only the ones you want.

| Setting | Value |
|---|---|
| Enable | Tick to show the method at checkout. Off by default. |
| Title | What shoppers see. |
| Your Polygon USDC wallet | A `0x…` address you control. Set it **separately for each method** you enable. |

Use a self-custodial wallet. Exchange deposit addresses are not recommended.

## See your payments in OnCharge {#dashboard}

Connect the plugin to your OnCharge account to list its payments in the dashboard, with what reached your wallet and a link to each payout transaction. The plugin works the same without it.

1. In the OnCharge dashboard, open **Payments → Card to Crypto** and select **Create plugin key** for your store. Copy the key: it is shown once. No verification is needed.
2. In WordPress, open **WooCommerce → OnCharge**, paste the key and select **Connect**. The page confirms the store it connected to.

Payments made after you connect appear within seconds, with their status (paid, needs review, waiting or not paid), the method the customer used, the amount, the USDC paid to your wallet and the Polygon payout transaction. Export them as CSV for your records. Earlier payments are not added.

- The key only adds this site's payments to your store's list: it cannot read data or move money. Revoke it in the dashboard at any time, and create a new one.
- No customer names or email addresses are sent with it. Each record keeps the order number, amount, method, payout wallet and transaction.
- These payments are already in your wallet, so they never appear in your OnCharge balance, payouts or fees.

### Automatic safeguards {#safeguards}

- **Sanctions screening.** The payout wallet is checked against the OFAC sanctions list before each payment is set up. A listed wallet is refused, with or without a key, and a key used with it is switched off.
- **New-store limits.** For a store's first 30 days, a connected store takes up to $500 per card, Cash App or Venmo payment and $2,000 of them in any 24 hours. A payment over that is declined at checkout, and the customer can pay the same order with crypto ([see below](#declined)). Crypto payments have no limit.
- **Automatic pause.** If several of a store's recent card payments could not be verified when they were paid out, its Card to Crypto pauses for seven days and turns back on by itself. The dashboard shows why and until when.

## Switch between Cash App, Venmo and card

Cash App, Venmo and card share one payment for the order: the same deposit wallet and amount. On the payment page they appear as tabs, and every page loads at once, so the Cash App and Venmo QR codes are ready before the customer switches:

- The method the customer chose shows first. Venmo's page loads immediately; Cash App's native invoice is prepared in the background, once per order.
- Switching keeps the same order and records the new method on it. Changing method at checkout (on the order's pay page) reuses the same payment too.
- Card opens a secure card page in a new tab.
- Checkout preconnects to the payment pages while the customer fills in the form, so the frames open faster.
- From 1.4.0 card, Cash App and Venmo pages open on OnCharge's checkout host, `ccheckout.oncharge.io`. One page keeps its own name: Cash App's native invoice (the QR code customers scan) is served by Cash App's payment partner on its own host and cannot be renamed. From 1.5.0 the plugin accepts only OnCharge's checkout host for the other pages.

Switching is offered between methods you have enabled that pay out to the **same wallet**. A customer should pay once: a payment through any of them completes the order.

## How checkout works

1. At **Place order**, the plugin saves a private payment session for the order and opens the payment step. Each payment window lasts 20 minutes.
2. The customer pays with the method they chose. Card, Cash App and Venmo need the billing email.
3. The order is marked paid only after a signed confirmation that **both** transfers (91% to you and 8% to OnCharge) reached their wallets in native USDC on Polygon, with at least 64 confirmations. The plugin checks from the payment callback, a background job and the payment page itself.

A payment that does not prove both transfers stays unpaid or **on hold** for review, and one transaction can complete only one order. Browser events never mark an order paid.

## When OnCharge declines a payment {#declined}

OnCharge can decline a payment before it is set up: a Card to Crypto payment (card, Cash App or Venmo) while the store's Card to Crypto is paused or when it is over a new store's limits ([safeguards](#safeguards)), or any payment whose payout wallet cannot be used with OnCharge. From 1.5.0 the customer does not have to start again:

- **Same order, same total.** After a declined card, Cash App or Venmo payment, checkout says why and offers your Crypto method for the same order, if you have it enabled. The order's pay page shows only the methods still allowed.
- **Never charged twice.** OnCharge declines before it sets up a payment, so a declined attempt has nothing to pay and the customer is told they have not been charged. Only OnCharge's explicit answer counts as a decline: a timeout or other error keeps the order on its method and asks the customer not to pay again, as before. If an earlier attempt for the order went unanswered, that attempt may have set up a payment, so a later decline offers nothing else: the customer is asked not to pay again, and the order note asks you to check the order.
- **Same total.** The other method pays the total the order had when it was declined. If the order has changed since, the customer is asked to contact the store.
- **Declines are kept.** The declined method, and any method the decline does not allow, is not offered again for that order, also on its pay page. Once the customer starts paying another way, the order stays on that method.
- **Declined wallet.** A payout wallet that cannot be used with OnCharge is declined for every method, so no OnCharge method is offered for that order. The order note asks you to set a different wallet under **WooCommerce → Settings → Payments**.

Each decline is recorded in the order notes, with what was declined and what the customer can use instead.

## What your customers see

Hosted card and app pages may open in a new tab, and providers can ask the customer to verify their identity. If a payment is short or under review, the order stays on hold: ask the customer not to pay again while you check it.

The checkout shows a small OnCharge mark with a link to the plugin page.

## Refunds

Payouts reach your own wallet, so you send refunds yourself from that wallet. The plugin never starts automatic refunds or second payments.

## Need more methods?

For Apple Pay, Google Pay and the other methods on the hosted checkout, or for 100+ coins paid out in the same coin, use the [Gateway API](https://oncharge.io/docs/gateway-api). For card processing through your own merchant account, use [OnCharge Secure Checkout for WooCommerce](https://oncharge.io/docs/woocommerce).
