Payment Providers
fype acts as an orchestrator, delegating the actual money movement to specialized payment gateways. We call these gateways “Providers.”Supported Providers
Currently, Fype officially supports the following providers for both one-time payments and subscription flows:- Razorpay: A leading payment gateway in India. Supports card and UPI recurring mandate subscriptions. View Guide
- Cashfree: Known for high success rates, instant payouts, and robust e-mandates. View Guide
- Simulator: Fype’s internal sandbox provider for instant testing of payments and subscriptions. View Guide
Connecting a Provider
To use a live provider like Razorpay, you must connect your gateway account in the fype Dashboard.- Go to Providers (Connections).
- Click Connect Razorpay.
- Select the environment (Sandbox or Live).
- Provide the required credentials:
- Key ID: Your gateway’s public key.
- Key Secret: Your gateway’s secret key.
- Webhook Secret: The secret used to verify webhooks coming from the gateway to fype.
- Click Save Connection.
Credential Security
Your gateway credentials are extremely sensitive. fype ensures their safety by:- Encryption at Rest: Credentials are encrypted using
AES-256(via the Fernet specification) before being stored in our database. - Access Control: Secrets are only decrypted in memory during the short window when fype needs to communicate with the gateway API.
- Vaulting: Only authorized fype backend services have access to the encryption keys.
Switching Providers
The power of fype lies in its decoupled nature. To switch your active provider or update credentials:- Update the connection details in the Providers tab.
- fype will immediately begin using the new credentials for all subsequent checkout sessions.
Explicit Provider Selection
If you have multiple providers connected (e.g., both Razorpay and Cashfree), you can explicitly choose which one to use for a specific payment by passing theprovider field in the Create Payment API.
Multi-Gateway Routing (Beta)
fype is currently developing intelligent routing features that will allow you to:- Route payments based on success rates.
- Failover to a secondary gateway if the primary is down.
- Split traffic between multiple gateways for A/B testing.