Rails Guide
Rails are the foundation of the Swipelux transfer system. Each rail represents a type of payment method for moving value, while providers are the actual services that support those payment method types.
Understanding Rails vs Providers
Our flexible architecture separates what you want to achieve (the rail/payment method type) from how it gets executed (the provider/service supporting that type):
Rails (Type of payment method)
Rails define the payment method interface your code uses. When you specify "rail": "card"
in your API calls, you're requesting a card-based payment without worrying about which specific card processor handles it.
Providers (Service supporting that type)
Providers are the actual services that process transactions. For example:
- Card rail can be processed by:
unlimit_crypto
,alchemy_pay
, ormoon_pay
- Apple Pay rail can be processed by:
moon_pay
,alchemy_pay
, or other Apple Pay-enabled providers - Wire transfer rail can be processed by: various banking partners
No-Code Configuration
Configure providers in your Admin Panel:
- Add API keys for desired providers (MoonPay, Unlimit Crypto, etc.)
- Set preferences for which provider handles each rail
- Switch providers anytime without changing your code
- Let our system choose the optimal provider if no preference is set
This architecture enables cheap code changes - your integration code remains stable while you can switch payment processors through configuration.
Rails fall into two main categories:
Crypto Rails (Blockchain Networks)
Blockchain networks where cryptocurrency transactions are processed. These rails handle crypto-to-crypto transfers and are used as destinations for onramp transfers.
Fiat Rails (Payment Methods)
Traditional payment methods that handle fiat currencies. These rails are used for onramp transfers (fiat → crypto) and offramp transfers (crypto → fiat).
Supported Crypto Rails
We support transfers across multiple blockchain networks, each with their native tokens and standards:
Rail | Network | Native Token | Token Standards |
---|---|---|---|
algorand | Algorand | ALGO | ASA |
aptos | Aptos | APT | |
arbitrum | Arbitrum | ETH | ERC-20, ERC-721 |
avalanche | Avalanche | AVAX | ERC-20, ERC-721 |
babylon | Babylon | BABY | |
base | Base | ETH | ERC-20, ERC-721 |
berachain | Berachain | BERA | |
bsc | Binance Smart Chain | BNB | BEP-20, BEP-721 |
bitcoin | Bitcoin | BTC | |
bitcoin_cash | Bitcoin Cash | BCH | |
bob | Bob | BOB | |
canton | Canton Network | CC | |
cardano | Cardano | ADA | |
celo | Celo | CELO | ERC-20, ERC-721 |
codex | Codex | ETH | ERC-20, ERC-721 |
cosmos | Cosmos | ATOM | |
dogecoin | Dogecoin | DOGE | |
ethereum | Ethereum | ETH | ERC-20, ERC-721 |
fantom | Fantom | FTM | ERC-20, ERC-721 |
hedera | Hedera | HBAR | |
icp | Internet Computer | ICP | CANISTERS |
ion | ION | ION | |
iota | IOTA | IOTA | |
kadena | Kadena | KDA | |
kaspa | Kaspa | KAS | |
kusama | Kusama | KSM | |
litecoin | Litecoin | LTC | |
optimism | Optimism | ETH | ERC-20, ERC-721 |
origyn | Origyn | OGY | |
plume | Plume | PLUME | ERC-20, ERC-721 |
polkadot | Polkadot | DOT | |
polygon | Polygon | POL (MATIC) | ERC-20, ERC-721 |
polymesh | Polymesh | POLYX | |
ripple | Ripple | XRP | |
sei | SEI | SEI | |
solana | Solana | SOL | SPL, SPL 2022 |
stellar | Stellar | XLM | SEP-41 (Stellar Classic Assets) |
sui | SUI | SUI | |
ton | Ton | TON | TEP-74 (Jetton) |
tezos | Tezos | XTZ | FA1.2, FA2.0 |
tron | Tron | TRX | TRC-10, TRC-20, TRC-721 |
Crypto Transfer Example
Supported Fiat Rails (Type of payment method)
Core Payment Rails
These are the abstract payment method types your code interfaces with:
Rail | Payment Method Type | Example Providers |
---|---|---|
card | Credit/Debit Card payments | unlimit_crypto , alchemy_pay , moon_pay |
apple_pay | Apple Pay mobile payments | moon_pay , alchemy_pay |
google_pay | Google Pay mobile payments | moon_pay , alchemy_pay |
wire_transfer | Traditional bank wire transfers | Various banking partners |
open_banking | EU bank account connections | Banking API providers |
paypal | PayPal wallet payments | PayPal integration providers |
Regional Payment Rails
Rail | Payment Method Type | Region | Example Providers |
---|---|---|---|
pix | Brazilian instant payments | Brazil | Local banking partners |
upi | Unified Payments Interface | India | UPI gateway providers |
alipay | Chinese digital payments | China | Alipay integration partners |
wechat_pay | WeChat mobile payments | China | WeChat Pay providers |
sepa | Single Euro Payments Area | EU | SEPA processing partners |
ach | US bank account transfers | USA | ACH processing networks |
faster_payments | UK instant bank transfers | UK | UK banking networks |
Available Providers (Services supporting payment types)
These are the actual services that process transactions for the rails above:
Multi-Rail Providers
Provider | Supported Rails | Strengths |
---|---|---|
moon_pay | card , apple_pay , google_pay , open_banking | Global coverage, fast processing |
alchemy_pay | card , apple_pay , google_pay | Low fees, Asian markets |
unlimit_crypto | card , wire_transfer , sepa | European focus, compliance |
paybis | card , wire_transfer | High limits, institutional |
wert | card , apple_pay | Widget integration, UX |
Regional Specialists
Provider | Region | Specialized Rails |
---|---|---|
Local banking partners | Brazil | pix |
UPI gateway providers | India | upi |
Alipay partners | China | alipay , wechat_pay |
EU payment processors | Europe | sepa , open_banking |
Provider Configuration & Selection
Admin Panel Configuration
Configure your payment stack in the Admin Panel:
- Add Provider Credentials: Enter API keys for providers like MoonPay, Unlimit Crypto, Alchemy Pay
- Set Rail Preferences: Choose your preferred provider for each rail:
- Card rail → Unlimit Crypto (your preference)
- Apple Pay rail → MoonPay (your preference)
- Wire transfer rail → Paybis (your preference)
- Enable/Disable Providers: Turn providers on/off without code changes
Automatic Provider Selection
When no explicit preference is configured, our system automatically selects the optimal provider based on:
- Cost optimization: Lowest fees for the transaction amount and currency
- Speed: Fastest processing time for the rail and region
- Success rates: Historical performance for similar transactions
- Geographic optimization: Best local coverage for the user's location
Code Example - Always the Same
Your code remains consistent regardless of which provider processes the transaction:
Behind the scenes:
- Admin panel configured Unlimit Crypto as preferred card provider
- Transaction routes through Unlimit Crypto's card processing
- Switch to Alchemy Pay tomorrow? Zero code changes needed
Fiat Transfer Example
Our OnRamp
While we support many onramp providers (AlchemyPay, Unlimint, Paybis, MoonPay, Wert, and others), Swipelux OnRamp provides maximum compatibility with our crypto rails system. Our native onramp implementation enables seamless cryptocurrency purchases through credit/debit cards, Apple Pay, and Google Pay, with both programmatic API access and embeddable widget options.
Features
- Secure crypto transactions: Support for 100+ cryptocurrencies with full fraud dispute and chargeback protection as merchant of record
- Optimal conversion rates: Pre-verified users with stored payment details maximize conversion success
- Diverse payment methods: Credit/debit cards, Apple Pay, Google Pay, and regional banking methods
- Customizable widget: Full branding customization and white-label solutions available
- Compliance features: Built-in regulatory compliance features for financial services
Supported Coverage
- Regions: 100+ countries and regions
- Cryptocurrencies: 100+ supported tokens
- Networks: All crypto rails listed above as destination networks
Quick Widget Integration
Embed the card rail widget directly in your application:
Programmatic API Integration
Create card rail transfers programmatically using our Transfer API:
Processing flow:
- Card payment processed through onramp partners
- USD converted to USDC at optimal market rates
- USDC transferred to customer's Polygon wallet
- Real-time status updates via webhooks
Integration Paths
Integration Type | Use Case | Setup Complexity | Customization |
---|---|---|---|
Widget Embed | Quick deployment, standard UI | Low | Medium |
React SDK | React applications | Low | High |
Web Components | Any framework | Low | Medium |
API + Custom UI | Full control | Medium | Complete |
Payment Links | No-code solution | None | Limited |
For detailed implementation guides including React SDK, Web Components, server-side integration, webhooks, and customization options, see our Swipelux OnRamp integration guides.
Best Practices
Rails-First Development
- Use abstract rails: Code against
card
,apple_pay
,wire_transfer
- not specific providers - Let configuration handle routing: Keep provider logic in your Admin Panel, not your code
- Plan for provider switches: Design your integration to be provider-agnostic
Provider Strategy
- Start with one provider per rail, expand as needed
- Monitor costs and performance: Switch providers when you find better options
- Use our automatic selection: For optimal cost/speed balance when no preference is set
- Test provider combinations: Different providers excel in different regions/currencies
Configuration Management
- Add multiple providers for redundancy and optimization
- Set preferences for critical rails (card, apple_pay, etc.)
- Monitor performance through Admin Panel analytics
- Switch providers instantly without code deployment
Error Handling
Handle rail-level errors gracefully - provider-specific issues are abstracted away:
- Network connectivity: Blockchain rails may have temporary network issues
- Regional restrictions: Some rails unavailable in certain regions
- Rail validation: Always validate rail compatibility with user geography
Next Steps
- Configure Providers: Set up your payment stack in the Admin Panel
- Integration: See our Transfer API guides for implementation details
- Testing: Use sandbox environment to test different rail and provider combinations
- Support: Contact customer support for provider onboarding and rail-specific questions