# OpenCart

> The Intents Checkout payment extension for OpenCart 4 and 3.0.x, set up in test mode first.

**[Download for OpenCart 4.x](https://intents.fi/integrations/opencart/download)** · **[Download for OpenCart 3.0.x](https://intents.fi/integrations/opencart/download/3)** (always the latest version)

| Build | File | Released | Tested on | SHA-256 |
|---|---|---|---|---|
| OpenCart 4.x 1.0.0 | [`1.0.0/intentsfi.ocmod.zip`](https://intents.fi/integrations/opencart/download/1.0.0/intentsfi.ocmod.zip) | 2026-11-26 | OpenCart 4.0.2.3–4.1.0.4, PHP 8.1–8.2 | `1d89544e55c0f67cbc13e379f8f90210e75288015b0a4f6e71edc7bcda0041e2` |
| OpenCart 3.0.x 1.0.0 | [`intentsfi-opencart3-1.0.0.ocmod.zip`](https://intents.fi/integrations/opencart/download/intentsfi-opencart3-1.0.0.ocmod.zip) | 2026-11-26 | OpenCart 3.0.3.9–3.0.5.1, PHP 7.4–8.2 | `09891563197dd9cda6f6e4bff47ccceb54d2ac8527f56b7daaf8771a0e6cff3d` |

Each versioned file never changes once published, so its link and checksum are safe to pin.

There are two packages, one per OpenCart line:

| Package | OpenCart |
|---|---|
| `intentsfi.ocmod.zip` | 4.0.2.3 and 4.1.0.4 (tested) |
| `intentsfi-opencart3-1.0.0.ocmod.zip` | 3.0.3.9, 3.0.4.1 and 3.0.5.1 (tested) |

Download the one for your OpenCart above. The OpenCart Marketplace listing is in review. Keep the OpenCart 4 file name as it is: OpenCart 4 names the extension
after the zip.

1. In OpenCart, go to **Extensions → Installer** and upload the package. Then go to
   **Extensions → Extensions**, choose **Payments**, and install **Intents Checkout**. Installing
   adds a **Payment review** order status.
2. Edit **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 OpenCart connected in **test mode**, with your keys and payment notifications set up. Nothing
   to copy.
4. Turn **Status** on and save, then place an order. The hosted page shows a **Complete the test
   payment** button for a test invoice. Press it, and the order moves to **Processing** when the
   webhook says the invoice is paid.
5. When your account is ready for live payments (a verified email and a payout wallet), press
   **Go live**. The store switches to live mode only when that round trip finishes. See
   [Plugin Connect](/docs/checkout/connect).

**Disconnect** revokes the keys Connect made, on intents.fi and in the store, at once.

### Enter keys manually

Connect needs the store and its admin on the same address (the same `https://` and domain), and
the storefront has to be reachable while you connect, so not in maintenance mode. If either is not
the case, or you would rather paste keys:

1. In [the dashboard](https://dashboard.intents.fi), copy your **test** API key (`ik_test_…`).
2. Under **Enter keys manually**, paste it into **Secret API key** (the mode is read from its
   prefix) and copy the **Webhook URL** the page shows.
3. Add that URL as a webhook endpoint for your test key, subscribed to the `invoice.*` events,
   either on the dashboard's **Webhooks** page or with the API, and paste the `whsec_…` secret it
   returns into **Webhook secret**:



```bash title="curl"
curl https://api.intents.fi/v0/webhooks \
  -X POST \
  -H 'authorization: Bearer $INTENTS_SECRET_KEY' \
  -H 'content-type: application/json' \
  -d '{
       "url": "https://northwood.example/hooks/intents"
     }'
```

```ts title="TypeScript"
const response = await fetch("https://api.intents.fi/v0/webhooks", {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.INTENTS_SECRET_KEY}`,
    "content-type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://northwood.example/hooks/intents"
  }),
});

if (!response.ok) {
  const { error } = await response.json();
  throw new Error(`${error.code}: ${error.message}`);
}
const data = await response.json();
```

```python title="Python"
import os
import httpx

response = httpx.post(
    "https://api.intents.fi/v0/webhooks",
    headers={"authorization": f"Bearer {os.environ['INTENTS_SECRET_KEY']}"},
    json={
        "url": "https://northwood.example/hooks/intents"
    },
)
response.raise_for_status()
data = response.json()
```



4. Save, then press **Test connection**: it checks the saved key and shows the merchant, the mode
   and the settlement address it belongs to.

The webhook URL is:

| OpenCart | Webhook URL |
|---|---|
| 4.x | `https://<your store>/index.php?route=extension/intentsfi/payment/intentsfi.webhook` |
| 3.0.x | `https://<your store>/index.php?route=extension/payment/intentsfi/webhook` |

**The store currency must be USD.** Invoices are priced in USD and nothing is converted, so the
payment method is offered only when the store's default currency and the customer's currency are
both USD. Otherwise it is hidden at checkout and the settings page says why. It is also hidden while
no secret key is saved, and for carts with a subscription or recurring product.

## How a payment runs

1. The customer chooses **Pay with crypto**. The block below it leads with the amount to pay, and
   **Continue to payment** creates an invoice for the order total and sends them to the hosted
   payment page. The order gets the **awaiting payment** status (Pending unless you change it).
2. The customer pays there; the extension has no checkout UI of its own.
3. intents.fi sends signed `invoice.*` webhooks to the webhook URL, and the extension adds order
   history.

The invoice's `reference` is `opencart-<order id>-<store>`, with `-test` added in test mode, where
`<store>` is a short tag derived from your store's address, so two stores on one account never
share an invoice. It is the API's idempotency key, so a retried checkout lands on the same
invoice. If the order total changes, or
its invoice expires or is cancelled, the order gets a new invoice (`-r2`, then `-r3`) and the old
one is cancelled through the API. Before a customer is sent to an invoice, the extension checks it
belongs to this store and order, mode and amount. The customer coming back to the store never marks
an order paid. Only the webhook does.

## What each event does

| Event | Order |
|---|---|
| `invoice.paid` | **Paid** status (Processing unless you change it); the customer is told "Payment received" |
| `invoice.paid` that needs a person | **Payment review**, with a comment saying why |
| `invoice.underpaid`, `invoice.needs_review` | **Payment review**, with a comment |
| `invoice.expired`, `invoice.canceled` | **Expired** / **Canceled**, if the order is still awaiting payment |
| `invoice.processing` | a comment for you |

A payment goes to **Payment review** rather than **Paid** when it arrived late (after the invoice
expired or was cancelled), when intents.fi flagged it, when the amount or currency differs from
what the order asks for now (for example after you edited the order), when it landed on an invoice
the order has replaced, when you had already cancelled the order, or when the order was already
paid. A Complete order keeps its status and gets the comment.

Deliveries can repeat and arrive out of order. The extension stores each event ID and ranks
events, so a late `invoice.expired` after `invoice.paid` changes nothing, while a late
`invoice.paid` still reaches the order.

## Settings

| Setting | Notes |
|---|---|
| intents.fi account | **Connect intents.fi**, or who the store is connected as, with **Go live** and **Disconnect** |
| Secret API key | `ik_test_…` or `ik_live_…`; the mode comes from the prefix. Never shown again once saved; leave blank to keep it |
| Webhook secret | the `whsec_…` returned when the endpoint was registered for the same mode |
| Webhook URL | read-only, with a copy button |
| Connection: **Test connection** | checks the saved key and reports the merchant and settlement address |
| Order statuses | awaiting payment, paid, needs review, expired and canceled |
| Status, Sort Order | as for any payment method |

One key and one secret are in use at a time. **Go live** swaps them for live ones. If you entered
keys manually, register the URL for the live key too and paste both the live key and its secret.

## Going live

1. Press **Go live** (or, with manual keys, register the webhook URL with the **live** key and
   paste the live key and its secret).
2. Place a real $5 order from a phone, on the network your customers use, and check it reaches
   Processing and the money reaches your address.

## Troubleshooting

- **Orders stay Pending.** The webhook is not arriving or not verifying. Check the secret matches
  the key's mode, and that the store is reachable over `https` from the internet: intents.fi
  delivers only to public `https` URLs. A delivery whose signature does not verify gets a `401`
  and is retried. `storage/logs/intentsfi.log` shows each delivery.
- **"Test connection" fails with `UNAUTHORIZED`.** The key is wrong, or it is a publishable `pk_`
  key. The extension needs a secret `ik_` key, and checks the *saved* one, so save first.
- **The payment method does not show at checkout.** The currency is not USD, the method is not
  enabled, or no secret key is saved.
- **"This order total is outside what this payment method accepts."** The API refused the
  amount (`AMOUNT_OUT_OF_RANGE`): the smallest payment is $1.00. The error's message in
  `storage/logs/intentsfi.log` says what it accepts.
- **Connect comes back with "Live payments are not open for your account yet."** Finish the
  go-live checklist on the dashboard (a verified email and a payout wallet), then press **Go live**
  again. The store stays in test mode until then.
- **Connect says payment notifications could not be set up.** intents.fi only delivers to an
  `https://` address the store answers on. Fix that, then press **Connect intents.fi** again.

Questions: support@intents.fi.

---

Source: https://intents.fi/docs/checkout/opencart · The whole corpus: https://intents.fi/docs/llms-full.txt
