Migrate Payment Gateway - Razorpay to Cashfree Payments

Migrates existing Razorpay payment gateway integrations to Cashfree Payments APIs and SDKs.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/dasara-varun/orange --skill migrate-payment-gateway-razorpay-to-cashfree-payments-dasara-varun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Migrate Payment Gateway - Razorpay to Cashfree Payments
Source: https://github.com/dasara-varun/orange/tree/main/.cursor/cashfree-skills/migrate-from-razorpay
Command: npx skills add https://github.com/dasara-varun/orange --skill migrate-payment-gateway-razorpay-to-cashfree-payments-dasara-varun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Replacing a Razorpay integration with Cashfree Payments involves subtle breaking differences—paise vs rupees amounts, Basic Auth vs header credentials, hex vs base64 webhook signatures, and client-side signature verification vs backend re-fetch—that cause failed payments and broken webhooks if missed. ## Core Features & Use Cases - Concept and Field Mapping: Provides endpoint-by-endpoint, field-by-field, and status-code translation tables between Razorpay and Cashfree APIs. - Guided Seven-Step Migration: Covers inventorying Razorpay code, swapping SDKs, rewriting order creation, checkout JS, refunds, and webhooks, then parallel-running before cutover. - Per-Language Rewrites: Includes before/after code for Node.js, Python, Java, Go, PHP, .NET, Ruby, plus React Native, Android, iOS, and Flutter mobile SDKs. - Use Case: A team with an Express backend using razorpay.orders.create and X-Razorpay-Signature webhook verification can follow the skill to produce equivalent Cashfree code with PGCreateOrder, payment_session_id checkout, and timestamped base64 webhook verification. ## Quick Start Ask the AI to migrate the Razorpay order creation and webhook verification code in this repository to Cashfree Payments.

Frequently Asked Questions about Migrate Payment Gateway - Razorpay to Cashfree Payments

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

FAQPage Schema
How do I migrate from Razorpay to Cashfree Payments?▼

Follow a seven-step process: inventory all Razorpay SDK calls and webhook handlers, obtain Cashfree credentials, swap the SDK package, rewrite order creation and verification, replace Checkout JS with payment_session_id flow, rewrite webhooks, then parallel-run before full cutover.

What is the Cashfree equivalent of razorpay.orders.create?▼

The equivalent is PGCreateOrder (POST /pg/orders), which takes order_amount in rupees instead of paise, requires customer_id and customer_phone, and returns a payment_session_id for the client instead of exposing any API key.

Why does Cashfree webhook signature verification fail after migrating from Razorpay?▼

Cashfree computes HMAC-SHA256 over the timestamp plus raw body and encodes it as base64, while Razorpay hashes only the body and encodes as hex. You must prepend the x-webhook-timestamp header value and switch the digest encoding to base64.

Does Cashfree have a client-side API key like Razorpay key_id?▼

No. Cashfree has no public client-safe key; only the short-lived payment_session_id is sent to the browser. Payment success must be verified by re-fetching the order status from the backend, never by trusting a client callback.

Can I migrate RazorpayX payouts and subscriptions to Cashfree?▼

Yes. RazorpayX Contact plus Fund Account maps to a single Cashfree Beneficiary object, and Razorpay Subscriptions map to Cashfree Plans and Subscriptions with different status values and webhook events, covered in the reference sections 7 and 9.

When should I not use this Razorpay to Cashfree migration approach?▼

Skip it when the project has no existing Razorpay code, since a fresh Cashfree integration is simpler. It also does not migrate historical payment data; old Razorpay orders remain in Razorpay and only new traffic moves.