Checkout Rules
Checkout Rules let you stop checkout with a clear customer-facing message when a cart should not be allowed to proceed. They use the same Payflow condition builder as Payment and Delivery Customizations, but the action is a validation error instead of hiding, renaming, or reordering a method.
Use Checkout Rules for cases like blocked postcodes, required company details for B2B orders, quantity limits, PO box restrictions, minimum subtotals, or high-value order checks.
Create a Checkout Rule
Section titled “Create a Checkout Rule”- In Payflow, click Create customization and select Checkout Rule.
- Give the rule a clear name, such as “Block PO boxes” or “Company required for invoice orders”.
- Add conditions under When the following conditions are met. Use + Add AND condition for requirements in the same branch, or + Add OR group for alternative branches.
- Write the message customers should see at checkout when the rule blocks progress.
- Optional: add localized messages for languages your store supports.
- Set the rule to Active or Testing, then click Save.
When the message appears
Section titled “When the message appears”Checkout Rules run through Shopify’s checkout validation system. Payflow can surface validation during checkout interactions and at checkout completion, depending on the rule and the data Shopify has available at that moment.
Localized messages
Section titled “Localized messages”If your store has multiple checkout languages, add translations for the validation message. Payflow chooses the message from the checkout language when possible, falls back to the base language, and then falls back to the default message.
Keep messages short and actionable. For example:
We cannot ship to PO boxes. Please enter a street address.Company name is required for invoice orders.This order exceeds the maximum quantity for Cash on Delivery.
Testing
Section titled “Testing”Use Testing status before exposing a new blocker to customers. Go through a real storefront checkout and make sure the rule blocks only the intended carts. If your rule depends on address details, fill in the full address while testing.