Razorpay Integration & User Ledger

Замовник: AI | Опубліковано: 03.12.2025

My educational-affiliate platform is already live; what it lacks is a seamless money flow. I want the site to accept and disburse funds through Razorpay only, covering both the payment and the payout sides of their API. Scope • Payments: hook Razorpay Checkout into the existing purchase flow so students can pay without leaving the site. One-time charges are enough; no need for subscriptions right now. • Payouts: switch to RazorpayX so I can trigger automated, multi-currency, batch payouts to affiliates and instructors straight from the admin panel. • Ledger: every incoming payment and outgoing payout must write to a per-user ledger and an overall master ledger, showing amount, currency, status, fees, and timestamps. Tech notes The codebase is already running in production; you’ll audit what is there, wire up the new endpoints/webhooks, add the ledger tables (or improve any that exist), and leave clear inline documentation so future devs understand the flow. Use Razorpay’s official SDKs where available and keep all keys in environment variables. Acceptance A staging build where I can 1. complete a test purchase and see it in the ledger, 2. trigger a test batch payout that settles automatically, and 3. download both ledgers as CSV with matching totals to Razorpay’s dashboard. If you have solid Razorpay experience and can deliver clean, well-commented code quickly, let’s get started.