Routing
Conditions
AvailableConditions are the checks in a workflow. Each one looks at one attribute of the payment and sends it down the Yes or No branch. Chain them to combine checks, or use parallel branches for alternatives.
Availability
- Available
Typed condition steps
- Available
BIN intelligence conditions
Uses cached BIN data and an optional public lookup; see BIN intelligence.
Condition steps
| Step | Looks at |
|---|---|
| Currency | The ISO 4217 currency, for example SAR or USD. |
| Amount | The payment amount. |
| Card BIN | The first 6–8 digits of the card, or a BIN range. |
| Card brand | Visa, Mastercard, Amex and so on. |
| Card scheme | The normalized scheme. mada is a first-class scheme next to Visa, Mastercard and Amex. |
| Country | The payment country, the customer country or the IP country. |
| BIN intelligence | Issuing country, card type or card category. |
| Transaction type | Purchase (sale) or authorize. |
| Condition | A general check on card brand, scheme, BIN, currency, amount, country, customer country, payment method, card issuer or transaction type. |
The routing engine also understands device type, metadata, gateway health, date and time range, day of week and traffic bucket.
Operators
Operators read as plain words on the card: is, is not, is one of, is none of, is over, is under, is … or more, is … or less, is between. The engine also supports not between.
Add a condition
- Step 1: Click + where the check should go and choose a step under Check something.
- Step 2: In the Step panel choose the field (where the step offers one), the operator and the values. Separate several values with commas.
- Step 3: Connect the Yes and No branches to the next steps. Every branch must end at a gateway or finish step.
- Step 4: Run Test a payment with values on both sides of the check to confirm each branch.
Permissions
The console hides screens and actions you lack the permission for, and the API enforces the same permissions. See Roles and permissions for every role.
| Permission | Allows | Built-in roles |
|---|---|---|
routing_workflows.manage | Create and edit workflows, triggers and saved tests; submit for approval; import; use the assistant. | PlatformAdmin, MerchantAdmin |
routing_workflows.read | Open workflows, validate, export, run saved tests, view performance and replay. | PlatformAdmin, MerchantAdmin |
Related
This documentation reflects the platform as verified on 4 December 2026. Meem orchestrates payments across the PSP accounts you contract; it does not hold funds or process payments itself.