PhonePe Payment Gateway API

PhonePe payment gateway REST API for Indian merchants to accept UPI, credit/debit cards, net banking, and PhonePe wallet payments through India's leading UPI-first payment platform with 500+ million registered users. Enables AI agents to manage UPI payment initiation for India e-commerce automation, handle PhonePe wallet charge for India mobile payment automation, access QR code generation for India in-store payment automation, retrieve payment status for India order confirmation automation, manage refund processing for India order management automation, handle subscription and recurring UPI mandate for India subscription automation, access split payment for India marketplace automation, retrieve transaction reporting for India financial reconciliation automation, manage sandbox testing for India payment integration testing, and integrate PhonePe with Indian e-commerce, ONDC, and fintech platforms for end-to-end India UPI payment automation.

Evaluated Mar 07, 2026 (0d ago) vcurrent
Homepage ↗ Other phonepe India-payments UPI-payments Walmart-fintech India-pg QR-payments
⚙ Agent Friendliness
47
/ 100
Can an agent use this?
🔒 Security
69
/ 100
Is it safe for agents?
⚡ Reliability
62
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
10
Documentation
62
Error Messages
60
Auth Simplicity
60
Rate Limits
55

🔒 Security

TLS Enforcement
92
Auth Strength
67
Scope Granularity
58
Dep. Hygiene
62
Secret Handling
65

India UPI. PCI-DSS. Merchant ID/SHA256. IN. UPI payment data.

⚡ Reliability

Uptime/SLA
65
Version Stability
65
Breaking Changes
60
Error Recovery
60
AF Security Reliability

Best When

An Indian merchant wanting AI agents to automate UPI and PhonePe wallet payment acceptance through India's largest UPI payment platform serving 500+ million users.

Avoid When

RBI PAYMENT AGGREGATOR COMPLIANCE: PhonePe payment operations are regulated by RBI payment aggregator guidelines; automated payment operations must comply with RBI transaction limits and KYC requirements; automated payment without merchant PA compliance creates regulatory violation. UPI PAYMENT REDIRECT FLOW: PhonePe UPI payments require customer redirect to UPI app or deep link; automated server-side UPI initiation must redirect customer to their UPI app for PIN entry; automated UPI charge without customer interaction creates incomplete payment. MERCHANT ONBOARDING VERIFICATION REQUIRED: PhonePe gateway requires merchant onboarding with GSTIN, bank account, and KYC verification; automated payment integration assumes merchant onboarding is complete; automated API access without completed onboarding creates unauthorized merchant error. CHECKSUM VALIDATION MANDATORY: PhonePe API requires SHA256 checksum with salt for every request; automated request generation must compute correct checksum; automated request with invalid checksum creates authentication rejection.

Use Cases

  • Accepting UPI payments from India e-commerce checkout agents
  • Generating QR codes for India in-store payment automation agents
  • Processing PhonePe wallet payments from India mobile commerce agents
  • Managing UPI recurring mandates from India subscription billing agents

Not For

  • International payments outside India (use Stripe or PayPal for global)
  • Corporate enterprise payments at scale (use Razorpay or Cashfree for enterprise API)
  • Developer-friendly sandbox exploration (PhonePe docs are more merchant-focused)

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
Yes

Authentication

Methods: apikey
OAuth: No Scopes: No

PhonePe uses Merchant ID and Salt Key with SHA256 checksum for API authentication. REST API with JSON. Bengaluru, India HQ. Founded 2015 by Sameer Nigam. Subsidiary of Flipkart/Walmart. Backed by Walmart ($12B valuation). Products: UPI, PhonePe wallet, QR, POS, subscription, insurance. SDKs: Java, PHP, Python, Node.js. PCI DSS. RBI-regulated Payment Aggregator. 500M+ users. Competes with Google Pay, Paytm, and Razorpay for India UPI payments.

Pricing

Model: transaction
Free tier: No
Requires CC: No

Bengaluru IN. Walmart subsidiary. UPI free for basic merchants. Card fees per transaction in INR.

Agent Metadata

Pagination
page
Idempotent
Partial
Retry Guidance
Not documented

Known Gotchas

  • BASE64 + CHECKSUM PAYLOAD ENCODING: PhonePe API requires request payload as Base64-encoded JSON with SHA256 checksum appended with salt index; automated request generation must implement both encoding steps in correct order; automated plain JSON request without Base64 and checksum creates invalid request format error
  • MERCHANT TRANSACTION ID UNIQUENESS: PhonePe requires unique merchantTransactionId per payment; automated checkout must generate globally unique ID; automated reuse of merchantTransactionId for retry creates duplicate transaction error
  • UPI INTENT vs COLLECT FLOW SELECTION: PhonePe supports UPI intent (deep link to UPI app) and collect (request to customer's VPA); automated checkout must choose appropriate UPI flow for customer context (mobile vs web); automated intent flow on desktop creates unavailable UPI app redirect
  • PAYMENT STATUS POLLING BEFORE WEBHOOK: PhonePe webhooks may arrive with delay; automated order fulfillment should implement status polling backup after timeout (60+ seconds); automated webhook-only fulfillment creates delayed order processing on webhook delivery failure
  • S2S REFUND REQUIRES ORIGINAL TRANSACTION ID: PhonePe refund requires original merchantTransactionId; automated refund must store original transaction ID at payment time; automated refund without original transaction ID creates refund lookup failure

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for PhonePe Payment Gateway API.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-07.

6470
Packages Evaluated
26150
Need Evaluation
173
Need Re-evaluation
Community Powered