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.
Introduction to Fype
Fype is a decoupled payments orchestration engine. It acts as a middleware layer between your application and various payment gateways (like Razorpay, Cashfree, or Stripe).Why Fype?
1. Unified Interface
Integrating multiple payment gateways usually requires writing specific code for each one. With Fype, you integrate once and use any supported provider.2. Zero-Lock-in
Moving from one gateway to another typically involves significant refactoring. Fype allows you to switch providers via the dashboard without touching a single line of your integration code.3. Decoupled Checkout
Fype provides a managed checkout experience. You create a payment on your server, receive acheckout_url, and redirect your customer. Fype handles the heavy lifting of communicating with the gateway, verifying signatures, and managing the payment lifecycle.
4. Developer Experience
- Idempotency: Built-in support for
Idempotency-Keyheaders to prevent double-charging. - Sandbox Environment: A robust simulator to test all success and failure scenarios without real money.
- Standardized Webhooks: Receive the same webhook payload regardless of which gateway processed the payment.
How it Works
- Merchant Server: Calls the Fype API to create a payment.
- Fype API: Orchestrates with the configured gateway and returns a
checkout_url. - Customer Browser: Redirected to the
checkout_urlto complete the payment. - Fype Engine: Validates the payment with the gateway and transitions the status.
- Webhook Worker: Delivers a standardized webhook to the merchant’s server.
- Merchant Dashboard: Provides a single pane of glass to manage payments and configurations.