phonepe
Skill65 starsChanged 7 months agoMITView on GitHub
Process UPI payments via PhonePe — initiate collect requests, generate QR codes, check transaction status, and handle refunds. Use when the user asks about PhonePe payments, UPI integration, Indian mobile payments, or UPI collect/QR payment flows.
In this repository22 other files it gives its agents.
- bhagavad-gitaSkill
- cashfreeSkill
- covid-indiaSkill
- gurbaniSkill
- ifsc-apiSkill
- indian-constitutionSkill
- indian-newsSkill
- railradarSkill
- mutual-fundSkill
- namma-yatriSkill
- ondc-buyerSkill
- ondc-sellerSkill
- pincodeSkill
- rapidoSkill
- razorpaySkill
- sarvam-aiSkill
- shiprocketSkill
- thirukkuralSkill
- uber-indiaSkill
- vedic-astrologySkill
- vedic-textsSkill
- zohoSkill
The file
Files
PhonePe UPI Payment Gateway
Accept UPI payments via PhonePe — India's leading UPI platform.
Setup
- Register at https://business.phonepe.com
- Get API credentials from merchant dashboard
export PHONEPE_MERCHANT_ID="your_merchant_id"
export PHONEPE_SALT_KEY="your_salt_key"
export PHONEPE_SALT_INDEX=1
export PHONEPE_ENV="preprod" # "preprod" for testing, "production" for live| Variable | Required | Description |
| PHONEPE_MERCHANT_ID | Yes | Merchant ID from PhonePe |
| PHONEPE_SALT_KEY | Yes | Salt key for signing requests |
| PHONEPE_SALT_INDEX | Yes | Salt index (usually 1) |
| PHONEPE_ENV | No | "preprod" or "production" (default: preprod) |
Payment Workflow
- Initiate payment — use
collect(UPI request) orqr(QR code) command - Customer authorises — customer approves on their UPI app
- Check status —
python3 scripts/phonepe.py status "txn_id"to confirm payment - Handle result — status returns SUCCESS, PENDING, or FAILED; retry status check if PENDING
Usage
# Initiate UPI collect request (amount in INR)
python3 scripts/phonepe.py collect "user@upi" 100 "order123"
# Generate QR code payment
python3 scripts/phonepe.py qr 500 "order456"
# Check transaction status
python3 scripts/phonepe.py status "txn_id"
# Process refund
python3 scripts/phonepe.py refund "txn_id" 100Features
- UPI Collect (request payment from VPA)
- QR Code payments
- Transaction status checks
- Refunds
API Endpoints
- Sandbox:
https://api-preprod.phonepe.com - Production:
https://api.phonepe.com - Docs: https://developer.phonepe.com/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

