PhonePe Gateway & Listener Suite Full End-to-End Test Lab
Simulator Ready
Active Merchant UPI
Not Connected
Total Orders
0
Pending Orders
0
Auto-Captured Orders
0
Merchant PhonePe & IMAP Setup Disconnected

Simulates send_phonepeotp.php logic: Validates your 10-digit mobile, store name, real UPI ID (where customer funds land), and Google App Password for IMAP credit alerts.

+91
Payments will be routed to this VPA QR.
Simulated Database (phonepe_tokens) Live State

When verified, auth tokens (token, refreshToken, device_data) are saved and utilized by the background cron.

// No active merchant token yet.
Create Pending Checkout Order
₹
Scan & Pay via Any UPI App

PhonePe, Google Pay, Paytm, BHIM or Cred

upi://pay?pa=...
Status: PENDING
How this works: Once the customer pays, the order remains PENDING until the background cron in Step 3 fetches confirmation via PhonePe API or Gmail IMAP notification.
Auto-Capture Engine (phonepe.php)

Simulates the hybrid verification in phonepe.php:
1. Checks PhonePe Live API transactions.
2. Falls back to Gmail IMAP bank credit listener if API check fails.
3. Fires HTTP Webhook on confirmation.


Test IMAP Regex Parser

Simulate an incoming bank credit alert email to test email_payment_listener.php:

Execution Console & Webhook Telemetry
[SYSTEM] Console initialized. Ready for test run.
Orders Database (orders table)
Order ID Amount Created At Status Capture Method UTR / Ref Number Webhook Sent
No orders placed yet.
Master Cron Runner (cron_all.php)

This replicates cron_all.php, which sequentially runs all registered background cron URLs and logs HTTP status codes & JSON responses.

# Cron Task Endpoint Description Status HTTP Code
1 /crons/cron.php Main system health and order timeout verification Idle -
2 /crons/paytm.php Paytm gateway automated settlements Idle -
3 /crons/phonepe.php PhonePe Hybrid live API & IMAP listener Idle -
4 /crons/fail.php Mark expired pending orders (>24 hours) as EXPIRED/FAILED Idle -
5 /crons/subscription_reminders.php Send merchant expiry and renewal alerts Idle -