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
Admin Panel -> Settings -> Payment Gateways.
Locate Cashfree and set it to Enabled.
Open Settings.
Set environment to Development / test.
Paste test credentials into the matching fields.
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
Open the frontend.
Create a booking in a currency supported by your Cashfree test account.
At payment, choose Cashfree.
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
Activate live payments on your Cashfree account.
Switch the gateway environment to Production.
Enter production credentials.
Save and run a small live test booking.
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?

