Display payment methods by location
This tutorial describes how to configure which payment methods are displayed to the customer at payment, based on their geographic location. You can also prioritize the customer's active payment methods.
This automation uses the Ready to pay requested event and the Adjust ready to pay action.
To complete this tutorial, an active gateway is required. If you are testing in the sandbox environment, a test payment gateway called TestProcessor
is already configured. For more information, see Set up a payment gateway.
Create an automation on the 'ready to pay requested' event:
This step describes how to create an automation that is triggered when a customer requests to pay.
- In the left navigation bar, press Automations .
- In the Rules engine section, press Rules engine.
- Press Core events.
- Press the Ready to pay requested event.
- Press Rule set, then press Create rule.
- In the Name field, enter unique name to help differentiate between multiple rules.
- Optionally, to add labels that help you identify the rule: In the Labels field, add one or more labels.
- Optionally, to not stop further processing after this rule is executed: clear the Stop further processing checkbox.
Set conditions:
This step describes how to set conditions to filter customers based on their geographic location.
- In the Conditions section, clear the No conditions checkbox, and apply the following filter: 'RiskMetadata > Country'
is in
, then select a country. - Optionally, to add more filters, press Add filter.
- In the Conditions section, clear the No conditions checkbox, and apply the following filter: 'RiskMetadata > Country'
Configure the action to adjust the payment methods displayed to the customer:
This step describes how to configure which payment methods are displayed to the customer.
- In the Actions section, press Add action, then select the Adjust ready to pay action.
- Specify which payment methods to display when a customer requests to pay.
- Optionally, to display payment methods that are associated with the customer's active payment instruments at the top of the list: Select the Prioritize active payment instruments checkbox.
- Press Save rule.
To automatically assign a payment gateway based on customer location, and other data, see Set up payment gateway routing.