Cashfree Payment Gateway - Common Integration Mistakes

Diagnose and fix Cashfree payment integration errors across SDKs, webhooks, and APIs.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/dasara-varun/orange --skill cashfree-payment-gateway-common-integration-mistakes-dasara-varun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Cashfree Payment Gateway - Common Integration Mistakes
Source: https://github.com/dasara-varun/orange/tree/main/.cursor/cashfree-skills/common-mistakes
Command: npx skills add https://github.com/dasara-varun/orange --skill cashfree-payment-gateway-common-integration-mistakes-dasara-varun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cashfree Payment Gateway integrations fail in predictable ways — webhook signature mismatches, orders fulfilled on spoofed frontend callbacks, sandbox credentials leaking into production, and mobile SDK callbacks that never fire. This Skill provides a diagnostic catalog of these failure patterns so developers can identify the root cause and apply the correct fix instead of guessing. ## Core Features & Use Cases - Six failure categories: Covers security and credential mistakes, order creation errors, payment verification flaws, webhook integration issues, mobile SDK pitfalls, and rate limit or go-live readiness gaps. - Structured diagnosis format: Each mistake is documented as what goes wrong, why it happens, and how to fix it, with concrete code snippets, header names, error codes, and dashboard configuration steps. - Use Case: A developer sees signature mismatch on every webhook. The Skill identifies the most common cause — parsing the JSON body before HMAC-SHA256 verification — and prescribes using the raw request body with the correct framework-specific method. ## Quick Start Ask the AI to diagnose why your Cashfree webhook signature verification keeps failing or why a payment status is wrong, and apply the recommended fix.

Frequently Asked Questions about Cashfree Payment Gateway - Common Integration Mistakes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does Cashfree webhook signature verification fail?▼

Webhook signature verification usually fails because the JSON body was parsed and re-serialized before hashing, which changes decimals, field order, or whitespace. Always compute HMAC-SHA256 over the raw request body concatenated with the x-webhook-timestamp header, using your x-client-secret.

How do I verify a Cashfree payment before fulfilling an order?▼

Verify payment status from your backend by calling GET /orders/{order_id} and fulfill only when order_status is PAID. Frontend callbacks, return URLs, and SDK onSuccess handlers are hints that can be spoofed or arrive out of order, never proof of payment.

Why is my Cashfree payment failing with a 401 authentication error?▼

A 401 error typically means sandbox credentials are being used against the production base URL or vice versa. Sandbox uses https://sandbox.cashfree.com/pg and production uses https://api.cashfree.com/pg, each with its own x-client-id and x-client-secret pair.

Why is the Cashfree mobile SDK callback not firing?▼

The callback never fires if it is registered after calling doPayment(). Register the callback before initiating payment — in onCreate() for Android, viewDidLoad() for iOS, initState() for Flutter, or componentDidMount() for React Native.

Does the Cashfree SDK work with Expo Go?▼

No, the Cashfree React Native SDK uses native modules that Expo Go does not support. Run npx expo prebuild and build with expo-dev-client using npx expo run:android or npx expo run:ios instead.

When should I not use this troubleshooting skill?▼

Do not use it for step-by-step integration instructions — use the Backend SDK, Mobile SDK, S2S API, or Web Checkout skills instead. It also does not cover Payouts, Subscriptions, Verification Suite, or Secure ID products, which have their own error patterns.