> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stellartools.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# WooCommerce Adapter

> Accept Stellar blockchain payments in your WooCommerce store

The StellarTools WooCommerce plugin adds Stellar-based payments to any WooCommerce store. Customers pay with USDC, EURC, or XLM through a hosted checkout page. Order status updates automatically when StellarTools confirms payment via webhook.

## Requirements

* WordPress 6.0 or later
* WooCommerce 8.0 or later
* A [StellarTools account](https://dashboard.stellartools.dev/signup) with an API key and webhook secret

## Download the plugin

[Download stellartools-woocommerce.zip](https://dashboard.stellartools.dev/~api/integrations/woocommerce/download)

## Installation

### Step 1 Navigate to Add Plugin

In your WordPress admin sidebar, go to **Plugins** then click the **Add Plugin** button at the top of the page.

![Plugins page with Add Plugin button highlighted](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/addpluginbutton.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=12f6095d59d4afaaf938593b9ba91e86)

### Step 2 Upload and install

On the Add Plugins screen, click **Upload Plugin**, select your `stellartools-woocommerce.zip` file, then click **Install Now**.

![Upload Plugin form showing steps 1, 2, 3](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/installplugin.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=12563977152085ab2902c3833965bb4b)

### Step 3 Activate the plugin

After the upload completes, click **Activate Plugin**.

![Plugin installed successfully with Activate Plugin button](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/activateplugin.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=680caafd2ab902e9189c8edc272d5c6d)

StellarTools will now appear in your installed plugins list.

![Plugins list showing StellarTools as active](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/pluginactivated.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=c13769f542b50322c795219d1e6133e5)

## Configuration

### Step 4 Open WooCommerce payment settings

In the sidebar go to **WooCommerce → Settings**, click the **Payments** tab, and find StellarTools in the list. Click **Manage** to open the gateway settings.

![WooCommerce Payments tab with StellarTools active and Manage button highlighted](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/paymentoption.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=cdc4c942ccb0c86bafe1bc85b244f37c)

### Step 5 Enter your credentials

Fill in the fields highlighted below and save. Checkout amounts use your WooCommerce store currency (WooCommerce → Settings → General). Customers choose USDC, EURC, or XLM on the StellarTools hosted payment page.

![StellarTools gateway settings panel](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/keysadons.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=322fba0e701594b70e3b9811e4e786c6)

**API Key** `string` *required*

Your StellarTools secret key. Test keys begin with `sk_test_`; live keys begin with `sk_live_`. Find yours in the
[StellarTools dashboard](https://dashboard.stellartools.dev/api-keys).

**StellarTools API URL** `string`

Leave as `https://api.stellartools.dev` unless you are self-hosting. No trailing slash.

**Webhook Signing Secret** `string` *required*

Copy the signing secret from your webhook endpoint in the [StellarTools
dashboard](https://dashboard.stellartools.dev/webhooks). Your webhook URL is shown inline directly in the settings
page copy it from there.

**Order Status on Payment Confirmed** `string`

WooCommerce status to set when payment is confirmed. Use **Processing** for physical goods that need fulfilment; use
**Completed** for digital or virtual products.

**Debug Logging** `boolean`

Writes API requests and webhook events to WooCommerce → Status → Logs. Enable during setup, disable in production.

### Step 6 Register the webhook in StellarTools

Copy the webhook URL displayed in the settings panel and add it as a new endpoint in the [StellarTools dashboard](https://dashboard.stellartools.dev/webhooks). Enable at minimum the `payment.confirmed` and `payment.failed` events.

The URL uses WordPress plain-permalink REST routing:

```
https://<your-store-domain>/index.php?rest_route=/stellartools/v1/webhook
```

## How it works

Once configured, **Pay with Stellar (Crypto)** appears as a payment option on the WooCommerce checkout page.

![WooCommerce checkout page showing Pay with Stellar option selected](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/checkoutoption.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=6b44e8dbece2c2caf9afddb3b3531f33)

After clicking **Place Order** the customer is redirected to the StellarTools hosted payment page to complete the payment on the Stellar blockchain. On return they land on the WooCommerce order confirmation page.

![Order received confirmation page](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/orderconfirm.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=ae8629e28083f0831f16a772ef8620e5)

StellarTools fires a `payment.confirmed` webhook to your site. The plugin verifies the signature, resolves the WooCommerce order, and updates the status automatically.

![WooCommerce orders list showing order marked as Completed](https://mintcdn.com/stellartools/gF4PDjVxoHZSuz4W/images/ordercompleted.png?fit=max\&auto=format\&n=gF4PDjVxoHZSuz4W\&q=85\&s=564057f973301aa3fd2dc2df64cd32ce)

## Webhook events

| Event | WooCommerce action |
| - | - |
| `payment.confirmed` | Order moves to Processing or Completed (per your setting), payment ID and transaction hash saved to order meta |
| `payment.failed` | Order moves to Failed |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.