View as Markdown

Authorize · Guide

Hold WooCommerce orders

Install Provenance for WooCommerce and your store's orders run through your checkout rules. An order a rule names goes On hold while the buyer approves it on the approval page; approved, it moves to Processing and ships as usual. You can also ask before payment, at checkout, so a declined order is never paid.

Before you begin: you need the console's Owner or Admin role, a WordPress site with WooCommerce 8.3 or later, and a site our server can reach (a public address, not a local copy). Billed on your plan at the normal prices; each order your rules check counts as one checked order, and each cart, checkout or Store API request the plugin checks counts as one hosted check.

  1. The buyer pays
    WooCommerce takes the order
  2. Your rules check it
    Orders from AI agents, or your own
  3. The buyer approves
    On hold moves to Processing

1. Connect the store

In WordPress, open WooCommerce › Provenance and press Connect. The console opens and names your site; press Connect there. We check with the plugin on your site before anything is connected, then send you back to WordPress, where the plugin keeps the connection's secret. Nothing else on the account is reachable with it.

Connecting your first store adds the rule Orders from AI agents to your checkout rules, so orders from agents ask the buyer. Your other rules stay as they are. The store appears on Authorize › Stores beside any Shopify shops.

To keep the secret out of the database, set it in wp-config.php instead:

define( 'PROVENANCE_CONNECTION_ID', 'stc_01M81C7Q2W3E4R5T6Y7U8I9O0P' );
define( 'PROVENANCE_CONNECTION_SECRET', 'pwcs_…' );

2. Choose which orders ask

The settings page shows When to ask: the rules that can decide a store order. Change them in the console (Authorize › Stores › When to ask), where the policy builder offers the store templates: orders from agents, agent channels, first orders over an amount, products, countries and the rest. An agent order is one whose checkout the plugin saw from an agent or an automated browser, or one through a channel you name (WooCommerce's created_via, such as store-api).

3. The hold after the order

When an order is paid, the plugin asks us and waits up to five seconds. If a rule asks the buyer, the order goes On hold with a note, and the buyer gets the approval by email or text. When they approve, the order moves to the status it would have had. When they decline, it stays On hold and you decide: cancel and refund it from the order, or turn on Cancel automatically on decline in the console.

If we can't be reached, the order goes ahead as usual with the note "Provenance couldn't check this order". We never hold an order without an answer that says so.

Decisions reach the plugin as they happen; if your site misses one, the plugin picks it up within five minutes.

4. Ask before payment

Turn on Ask before payment on the settings page. At checkout, when a rule asks, the buyer sees the approval before paying: the classic checkout shows it in place, the block checkout shows the approve link. Once they approve, placing the order goes through and nothing is held. If the cart changes after approving, the order is held after payment instead.

5. See who reaches the cart

The Traffic card counts the last seven days of visitors: people, signed agents, unsigned agents, automated browsers and unknown. The plugin checks each cart, checkout and Store API request on your server, where it sees what the agent sent, including Web Bot Auth signatures. Other pages are counted without charge. Pages a caching plugin or CDN serves without WordPress aren't seen by the server check; the storefront script on those pages covers them.

Field timing (off by default) adds how the checkout form was filled in, never what was typed, as a rule fact. It runs only for visitors who allow statistics through the WP Consent API.

Put the check in the analytics category if your consent banner asks for it; it then runs only for visitors who allow statistics.

6. Disconnect

Deactivating the plugin ends the connection at once and deletes the store's visits. Erasing a customer's data in WordPress deletes what we hold for their orders.

Errors you might see

SymptomCauseFix
400 store_site_unreachable when you press ConnectOur server couldn't reach the plugin on your site, or the connect was started elsewhereUse the site's public address with the plugin active, then press Connect in WordPress again.
409 store_connection_conflictThe site is connected to another Provenance accountDisconnect it there (or deactivate the plugin), then connect it here.
400 store_oauth_state_invalid back in WordPressThe connect link was used already or is over 10 minutes oldPress Connect again.
The note "Provenance couldn't check this order"We couldn't be reached when the order was paidReview the order yourself; later orders are checked as usual.

See also