For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cashfree

Cashfree payment gateway for PHPTRAVELS: enable Cashfree in the admin, add your API credentials and accept online payments for bookings at checkout.

Cashfree is an online payment gateway you can enable in PHPTRAVELS so customers pay for bookings at checkout. This guide follows the same layout as PayStack, Flutterwave and Adyen: prerequisites, admin settings, a test booking, then going live.

Parent: Payments.

Prerequisites

  • Active PHPTRAVELS installation and Admin Panel access

  • Cashfree merchant account

  • Cashfree API credentials (test and later production)

  • At least one currency / payment method your Cashfree account supports

Complete the full flow in Cashfree's test environment before enabling live charges.

1. Get API credentials

Sign in to your Cashfree dashboard and open the API keys / developers section for your account.

Copy the credentials PHPTRAVELS asks for in the Cashfree gateway settings (typically app ID / client ID and secret key -- use the exact field labels shown in your admin).

Never expose production secrets in screenshots, public repositories or frontend code.

2. Enable Cashfree in PHPTRAVELS

  1. Admin Panel -> Settings -> Payment Gateways.

  2. Locate Cashfree and set it to Enabled.

  3. Open Settings.

  4. Set environment to Development / test.

  5. Paste test credentials into the matching fields.

  6. Save.

3. Test the connection

If the admin offers Test Credentials, run it. Fix any key, environment or IP whitelist issues Cashfree reports, then test again.

4. Create a test booking

  1. Open the frontend.

  2. Create a booking in a currency supported by your Cashfree test account.

  3. At payment, choose Cashfree.

  4. Complete Cashfree's test payment flow (test cards / UPI mocks as Cashfree documents for sandbox).

5. Verify

Confirm:

  • Customer returns to a successful booking page

  • Booking status is paid / confirmed as expected

  • Transaction appears in PHPTRAVELS payment records

  • Transaction appears in the Cashfree dashboard

6. Go live

  1. Activate live payments on your Cashfree account.

  2. Switch the gateway environment to Production.

  3. Enter production credentials.

  4. Save and run a small live test booking.

  5. Disable development keys.

Notes

  • Supported methods and currencies depend on your Cashfree merchant country and account configuration.

  • For custom gateway development patterns, see Adding Payment Gateway.

Last updated

Was this helpful?