sikhaid-payment

Integrate Razorpay checkout for donation processing with validation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/the-non-expert/SikhAidSPA --skill sikhaid-payment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sikhaid-payment
Source: https://github.com/the-non-expert/SikhAidSPA/tree/main/.claude/skills/sikhaid-payment
Command: npx skills add https://github.com/the-non-expert/SikhAidSPA --skill sikhaid-payment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It documents Razorpay integration, donation data types, validation, and complete payment flow for SikhAid.

Core Features & Use Cases

  • Razorpay Integration: Setup, open checkout, and success/failure handling.
  • Donation Data Types: Donation, Razorpay response.
  • Use Case: Process a donor donation flow from amount to success page.

Quick Start

Wire up Razorpay by configuring src/lib/razorpay.ts and using PaymentForm.svelte

Frequently Asked Questions about sikhaid-payment

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

FAQPage Schema
How do I integrate Razorpay into a donation payment flow?

Razorpay integration for donations requires configuring src/lib/razorpay.ts with your API credentials, setting environment variables, and using the openRazorpayCheckout flow to handle payment processing. The Skill provides the complete setup including checkout initialization, success/failure handlers, and donor information capture.

What validation does Razorpay donation processing require?

Donation validation covers amount verification, phone number format, and PAN capture for donations ₹2,000 or more. The Skill includes pre-built validation functions to ensure donor data meets requirements before payment submission to Razorpay.

Can I use Razorpay for online donations on both web and server components?

Yes, Razorpay integration applies across web and server components of the SikhAid platform. The Skill handles frontend payment form submission via PaymentForm.svelte and server-side Razorpay configuration to process donations securely end-to-end.

How do I handle Razorpay payment success and failure responses?

The Skill documents complete success and failure handling workflows, including response parsing from Razorpay, donor data storage, and conditional page routing. Both outcomes are mapped to appropriate user-facing feedback and platform state updates.

What donor information needs to be captured during Razorpay checkout?

Razorpay donation flows capture donor name and phone number for all transactions, plus PAN for donations ₹2,000 or above. The Skill defines data types and validation rules for each field to ensure compliance with donation requirements.