Route configuration
Once the route-level risk rules have been evaluated, we validate that the route configuration permits the requested payment method and payment details.
Route configuration checks are performed in two stages:
- Confirming that the requested payment method is supported by the selected route.
- Validating the supplied payment details against the configuration for that payment method.
For example, these checks may be used to only allow certain payment methods or payment details (e.g. billing countries, card schemes or amount limits) for a given route.
Payments that are declined due to a route level configuration rule will use one of the following declines:
0122- Payment method not configured for the selected route0123- Payment details not configured for selected route and method
Examples:
Below are a selection of example risk_rules objects you may find as part of your full API response from the Gateway API for your payments when they are declined due to not being within the allowed route configuration.
For more details on properties, operators and values please see our Open API specification.
- Route configuration - Payment method
- Route configuration - Payment details
This example shows a configuration rule which specifies that the selected route only allows the method types of apple_pay and google_pay
"risk_rules": [
{
"id": "rul_123",
"conditions": [
{
"property": "method.type",
"operator": "equals",
"values": [
"apple_pay",
"google_pay"
]
}
],
"type": "allow"
}
],
This example shows a configuration rule which specifies that the selected route and chosen payment method only allows payments where the billing address country is GBR, FRA or DEU and the card's scheme is visa
"risk_rules": [
{
"id": "rul_123",
"conditions": [
{
"property": "billing_address.country",
"operator": "equals",
"values": [
"GBR",
"FRA"
"DEU"
]
},
{
"property": "method.card.scheme",
"operator": "equals",
"values": [
"visa"
]
}
],
"type": "allow"
}
],