How to create shipping address-based conditional payments rule

This rule allows you to conditionally enable or disable payment methods based on specific shipping address details provided by the customer during checkout.

Steps to Configure a Shipping Address-Based Rule:

  1. Set Conditions:
    • Available Shipping Address Conditions:
      • First Name: Apply rules based on the customer's first name (e.g., "John").
      • Last Name: Apply rules based on the customer's last name (e.g., "Deo").
      • Company: Offer corporate or company-specific payment methods (e.g., "Dotstore").
      • Address/Address 2: Apply rules for specific shipping address patterns.
      • Country: Restrict or allow payments based on the customerโ€™s shipping country (e.g., "USA").
      • City: Adjust payment methods for customers from specific cities (e.g., "California").
      • Postcode: Tailor payment options based on postal codes (e.g., "00040").


        Admin: Available shipping address conditions
    • Create a new rule and choose one or more shipping address fields (e.g., country, city, or email) as conditions.
    • Specify the values or patterns to match for the selected fields.
  2. Configure Actions:
    • Select whether to enable or disable specific payment methods based on the conditions.


      Admin: Set shipping country based conditional payments rule
  3. Save and Test:
    • Save the rule and test it to confirm the settings are applied correctly at checkout.


      Front: Checkout page with applied rule

Note: When the "Ship to a different address?" option is unchecked, billing address fields are treated as shipping fields. Ensure conditions reflect this behavior for accurate configurations.

๐Ÿ“Œ Example Use Case #1: Restrict COD for International Customers

Hide the "Cash on Delivery" option for customers whose shipping country is not "USA."

๐Ÿ“Œ Example Use Case #2: Offer Net Banking for Specific Companies

Enable "Net Banking" only for customers shipping to a particular company.

๐Ÿ“Œ Example Use Case #3: Apply Special Payment Options for Specific Postal Codes

Enable "Bank Transfer" for customers shipping from postcodes with "12345".

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.