> ## Documentation Index
> Fetch the complete documentation index at: https://codebeans-payment-rules-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How payment customizations work

> The order of events at checkout, and why a rule sometimes appears to do nothing.

Worth two minutes before you build anything, because it explains most of the surprises.

## The order of events

1. A customer reaches checkout.
2. Shopify assembles the list of payment methods enabled in **Settings → Payments**.
3. Shopify runs your active rules against that cart.
4. The customer sees whatever survives.

Three consequences follow from step 2:

* **The app can only work with methods you have already enabled.** It cannot add a gateway.
* **A method not enabled in Shopify will never appear**, no matter what your rule says.
* **A cart that matches no rule sees the default list**, untouched.

## What a rule is made of

**A condition** — the *when*. `Cart total greater than 10000`. Simple rules have one; advanced rules combine up to five.

**An action** — the *what*. Hide, sort, or rename. You may pick more than one.

**A payment method selection** — the *which*. The list of your store's methods, where you toggle the ones this rule acts on.

## Draft vs Active

Every rule has a **Status** in the right-hand column.

* **Draft** — saved, not running. Safe to build over several sessions.
* **Active** — live on your checkout right now.

There is no scheduled activation. A rule is live the moment you save it as Active.

> [!WARNING]
>
> Rules do not run on **draft orders** or on any order created in the Shopify admin. They apply to customer-facing checkout only.

## Where your rules live

Each rule is written to the app's database *and* mirrored into a Shopify metafield that the checkout function reads. You do not manage this — it is automatic — but it is why rules keep working reliably and why exported rules can be re-imported into another store.


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