Skip to main content

Quickstart Guide

Get up and running with fype in under 10 minutes. This guide will walk you through creating your first test payment.

Prerequisites

  • A fype Merchant account.
  • Your fype API Key (Test mode).

1. Get Your API Key

  1. Log in to the fype Dashboard.
  2. Navigate to Developers > API Keys.
  3. Create a new Test Key.
  4. Copy the key (it starts with fype_test_).

2. Create a Payment

Use the fype API to create a payment. You can use curl or one of our SDKs.

Using cURL

Note: Amounts are in the smallest currency unit (e.g., 50000 paise = ₹500.00).

3. Redirect the Customer

The API response will contain a checkout_url:
Redirect your customer to this URL.

4. Simulate Success (Test Mode)

Since you are in test mode, the checkout page will show a “Simulator” gateway.
  1. Click Simulate Success.
  2. fype will transition the payment to succeeded.
  3. You will be redirected back to your success_url.

5. Verify the Payment

You can verify the status of the payment via API:
Next: Learn about Webhooks to automate your order fulfillment.