Checkout, Payment Routing, and Orders

Step 1: Configure Gateways Safely
Open Gateways and configure only the processors the store will use. Keep test and live credentials separate, choose supported currencies, and verify webhook destinations. Never place secret keys in screenshots, page content, Builder settings, support messages, or browser-visible source.

Step 2: Set Routing Rules
Build the narrowest routing rule for product, currency, country, subscription, or other supported context, then define a safe default. Review rule priority so one order cannot match several conflicting accounts. A route should explain why the selected processor received that checkout.

Step 3: Verify Cart and Totals
Test product selection, variations, quantity behavior, promotions, shipping, tax, and customer fields before payment begins. Compare the displayed subtotal, discount, shipping, tax, and total with the order record. Failed payment initialization should not create a false completed order or consume inventory.

Step 4: Complete the Order Matrix
Use approved test transactions for success, decline, retry, webhook delay, duplicate event, cancellation, refund, subscription renewal, and mobile checkout. Confirm order status, inventory, customer history, email notices, payment references, and idempotency remain correct after refresh or repeated callbacks.
