Documentation Index
Fetch the complete documentation index at: https://docs.fype.dev/llms.txt
Use this file to discover all available pages before exploring further.
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:- Razorpay: A leading payment gateway in India.
- Simulator: Fype’s internal sandbox provider for testing.
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.
- No code changes are required on your server or frontend.
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.