Skip to main content

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.
  1. Go to Providers (Connections).
  2. Click Connect Razorpay.
  3. Select the environment (Sandbox or Live).
  4. 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.
  5. 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:
  1. Update the connection details in the Providers tab.
  2. Fype will immediately begin using the new credentials for all subsequent checkout sessions.
  3. 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.
Contact support if you are interested in participating in the Multi-Gateway Beta.