Skip to content
Agentmart
Submit a tool

phonepe

Process UPI payments via PhonePe — initiate collect requests, generate QR codes, check transaction status, and handle refunds.

Skill by ankitjh4

IndexedMIT★ 66
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ankitjh4-phonepe

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/phonepe

What's inside

Skill name
phonepe
Description
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.
License
MIT
Metadata
author: ankitjh4 · display-name: PhonePe UPI Payments
Instructions
60 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • phonepe.py · scripts/

SKILL.md (first lines)

# PhonePe UPI Payment Gateway

Accept UPI payments via PhonePe — India's leading UPI platform.

## Setup

1. Register at https://business.phonepe.com
2. Get API credentials from merchant dashboard

```bash
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

1. **Initiate payment** — use `collect` (UPI request) or `qr` (QR code) command
2. **Customer authorises** — customer approves on their UPI app
3. **Check status** — `python3 scripts/phonepe.py status "txn_id"` to confirm payment
4. **Handle result** — status returns SUCCESS, PENDING, or FAILED; retry status check if PENDING

## Usage

```bash
# 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" 100
```

## Features

- 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/

From ankitjh4/indic-ai-skills, MIT.

More from ankitjh4/indic-ai-skills

Signals

Stars
66
Forks
10
Open issues
1
Last commit (this folder)
Mar 25, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ankitjh4

Cite this page

phonepe skill. Agent Mart. https://agentmart.dev/skills/ankitjh4-phonepe (last updated 2026-10-24)