phonepe

Generate PhonePe UPI payment links and query transaction statuses via CLI.

65|11|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/ankitjh4/indic-ai-skills --skill phonepe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phonepe
Source: https://github.com/ankitjh4/indic-ai-skills/tree/main/skills/phonepe
Command: npx skills add https://github.com/ankitjh4/indic-ai-skills --skill phonepe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

PhonePe UPI payment integration via a simple CLI enables developers to accept payments without platform-specific setup; it uses standard environment variables to configure the merchant, environment, and security keys.

Core Features & Use Cases

  • UPI Collect (payment link) to request customer payments
  • Check transaction status to verify completion
  • Validate VPA to ensure correct UPI addresses
  • QR-based payments via generated links for quick checkout
  • Refunds (where supported by the endpoint)

Quick Start

Register at PhonePe, set the required environment variables, and run the CLI to create a payment link and check its status.

Frequently Asked Questions about phonepe

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

FAQPage Schema
How do I generate a PhonePe UPI payment link from the command line?

To generate a PhonePe UPI payment link from the command line, configure your merchant ID and security keys in environment variables, then run the CLI script to call the PhonePe API and create a UPI collect request.

Can I verify if a UPI VPA is valid before initiating a PhonePe transaction?

Yes, you can verify if a UPI VPA is valid before initiating a PhonePe transaction by using the CLI to query the PhonePe API endpoint specifically designed for VPA validation.

How do I check the status of a PhonePe UPI transaction?

You can check the status of a PhonePe UPI transaction by running the CLI script with the relevant transaction identifier, which queries the PhonePe API to return the current payment status.

Do I need a specific programming environment to accept PhonePe UPI payments via CLI?

Accepting PhonePe UPI payments via CLI requires setting up environment variables for your merchant credentials and having the Python requests library installed to handle the API endpoint interactions.

What is the best way to test PhonePe payment links in a preprod environment?

The best way to test PhonePe payment links in a preprod environment is to configure your environment variables for the preprod setup, allowing the CLI to safely generate pay links and verify transaction statuses.

Are there limitations when processing refunds through the PhonePe CLI?

Refund processing through the PhonePe CLI is subject to the limitations and support of the underlying PhonePe API endpoint, meaning refunds can only be issued where explicitly supported by the API configuration.