Payrails
Quick Start
- Sign up at payrails.io and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
Payrails — payment orchestration platform with multi-provider support. Global coverage with intelligent routing.
| Provider ID | payrails |
| Category | Card Processors |
| Website | payrails.io |
Supported currencies: USD, EUR, GBP, CAD, AUD, JPY, CHF, BRL
Supported operations: charge, refund, partial_refund
Authentication
- Method: OAuth2 Bearer Token
- Base URL:
https://api.payrails.io/v1
Configuration
Required Parameters
| Parameter | Description |
|---|---|
client_id | OAuth2 Client ID |
client_secret | OAuth2 Client Secret |
merchant_id | Merchant ID |
base_url | Base URL API |
Example Configuration
{
"provider": "payrails",
"provider_params": {
"client_id": "your_client_id_here",
"client_secret": "your_client_secret_here",
"merchant_id": "your_merchant_id_here",
"base_url": "https://api.payrails.io/v1"
}
}
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
succeeded | charged | Payment successful |
processing | charging | Payment in progress |
pending | charging | Pending |
failed | rejected | Payment failed |
refunded | refunded | Refund processed |