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

# Checkout integrations

> WooCommerce plugin and Thinkific partner app.

Ready-made Checkout for common platforms. Each registers webhooks and keeps secrets on the server.

## WooCommerce

The Easner Checkout for WooCommerce plugin (`plugins/woocommerce/easner-checkout-for-woocommerce`) adds Easner as a WooCommerce payment method. Upload `easner-checkout.zip` from Plugins, Add Plugin. It uses the same Checkout you integrate by hand: a hosted page, an overlay, or an inline form, for one-time payments and subscriptions.

Customers pay on the Easner pay form. The plugin creates the session with your secret key and marks the WooCommerce order paid from webhooks. It does not use payment links.

## Before you install

1. Create an Easner Business account at [business.easner.com](https://business.easner.com) and open Console.
2. In Settings, API keys, create a key with Checkout and Manage webhooks. Copy the secret key once. Copy the publishable key if you will use overlay or inline.
3. In Console, Checkout, your site, Settings, add the store address as an allowed website before live payments.
4. For live payments: finish business verification, turn on online payments in Settings, Payments, then create a live key and Connect again.

## Install, paste keys, Connect

1. Install WooCommerce, then the plugin.
2. In WooCommerce, open **Settings**, **Payments**, **Easner**.
3. Paste the **secret key**. Paste the **publishable key** if you choose overlay or inline.
4. Choose **Hosted page**, **Overlay**, or **Inline**.
5. Click **Connect**.

Connect registers `https://{your-store}/wp-json/easner/v1/webhook` and stores the signing secret. You do not paste a webhook URL. Click Connect again after you change the secret key. A second Connect reuses the same URL.

## What the key needs

Create the key in Console, **Settings**, **API keys**.

| Scope | Why |
| - | - |
| `checkout` | Create Checkout sessions and manage subscriptions |
| `webhooks.manage` | Connect registers the webhook. Without it, Connect explains that Manage webhooks is off |
| `refunds.write` | Refund an order from WooCommerce |

Before live payments, add the store as an allowed website (Console, Checkout, your site, Settings). A return URL that is not on that list is `origin_not_allowed`, and the plugin says to add the store. Live also needs the business verified and online payments turned on. See [Test and live](https://docs.easner.com/test-and-live.md).

Test with `4242 4242 4242 4242`, any future date, and any CVC.

## How the customer pays

| Display | What happens |
| - | - |
| Hosted page | WooCommerce redirects to the session `url` on `checkout.easner.com`, then back to the order |
| Overlay | After they place the order, `checkout.js` calls `EasnerCheckout.openOverlay` on your store |
| Inline | The pay form mounts on your store’s payment step with `EasnerCheckout.mount` |

The browser only receives the session `url` or `client_secret`, plus the publishable key. The secret key stays in WordPress. The order is paid when `checkout.completed` arrives, not when the browser returns.

## Subscriptions

With WooCommerce Subscriptions, a recurring cart creates a Checkout session with `mode: subscription`. Without that plugin, Easner takes one-time payments only. Easner bills the recurring price. A WooCommerce sign-up fee is not sent as a separate one-time charge. Subscription webhooks update the WooCommerce subscription. **Manage billing** opens an Easner [customer portal](https://docs.easner.com/customer-portal.md) session for the customer.

Refunds from the WooCommerce order call `POST /v1/refunds`. Refunds made in Console update the order from `refund.created`.

## Thinkific

Thinkific does not take a payment gateway inside its own checkout. Easner Checkout for Thinkific is the partner app in `plugins/thinkific/easner-checkout`, on its own address. Thinkific installs that app. The app calls `api.easner.com` for Checkout. When `checkout.completed` arrives, the app enrolls the student and records an external order.

## Before you install

1. Create an Easner Business account at [business.easner.com](https://business.easner.com) and open Console.
2. Create a key with `checkout` and `webhooks.manage`. Copy the secret once. Refunds also need `refunds.write`.
3. Create the app in the Thinkific Partner Portal. Thinkific sends the creator to `{APP_URL}/install?subdomain={THINKIFIC_SUBDOMAIN}`.
4. Add the app’s `https` address as an allowed website before live payments.
5. For live charges, verify the business and turn on online payments. See [Test and live](https://docs.easner.com/test-and-live.md).

## Connect

In the app, paste the secret key and click **Connect**. Connect registers `{APP_URL}/api/easner/webhook` and stores the signing secret. You do not paste a webhook URL. A missing Manage webhooks scope tells the creator to enable it in Console.

Then map a course: Thinkific course id, product id, name, and price in cents. The app shows a buy link, `{APP_URL}/buy/{site}/{course}`.

## What the student does

The buy link asks for an email and redirects to the Checkout session `url`. The thank-you page does not grant access. The webhook creates the Thinkific user if needed, calls `POST /enrollments` with `activated_at` set, and calls `POST /external_orders` with provider `easner`.

A subscription course uses `mode: subscription`. Cancel, a failed renewal, or a full refund expires that enrollment. The thank-you page links to Manage billing, an Easner customer portal session.

Test with `4242 4242 4242 4242`, any future date, and any CVC.


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