AzionGateway — Automatic UPI Gateway for Paymenter v2
Accept UPI payments instantly using QR codes, deep links, and Gmail-based verification.
Overview
AzionGateway is a premium Paymenter v2 gateway built for Indian hosting providers and digital businesses.It allows customers to pay invoices using any UPI app such as:
- Google Pay
- PhonePe
- Paytm
- BHIM
- FamPay
- Any UPI-supported wallet
No Razorpay.
No Stripe.
No business verification.
Just your UPI ID and Gmail account.
Main Features
Modern UPI Payment Experience
✔ Dynamic QR code generation✔ Mobile UPI deep linking
✔ Animated countdown timer
✔ Real-time payment polling
✔ Responsive premium UI
✔ Automatic invoice reference generation
Fully Automatic Verification
✔ Gmail IMAP payment detection✔ Smart invoice note matching
✔ Duplicate payment protection
✔ Multi-pattern transaction parsing
✔ Safe concurrent payment handling
Discord Webhook Logging
✔ Real-time payment notifications✔ Error logging
✔ Payment confirmation embeds
✔ Invoice & transaction details
✔ Diagnostic event reporting
🛠 Admin Features
✔ Built-in diagnostics page✔ Debug mode support
✔ Email preview testing
✔ Full admin panel configuration
✔ One-click gateway testing
How It Works
Step 1 — Customer Opens Invoice
The customer clicks Pay Invoice inside Paymenter.AzionGateway generates:
- A dynamic UPI QR code
- A UPI payment button
- An invoice reference note
Step 2 — Customer Pays
The customer scans the QR code or opens their UPI app directly.The amount and invoice reference are automatically filled.
Step 3 — Automatic Verification
The gateway:- Connects to Gmail via IMAP
- Reads FamPay payment emails
- Matches payment amount and invoice reference
- Confirms the invoice automatically
Step 4 — Invoice Marked Paid
Paymenter instantly marks the invoice as paid and provisions services normally.🛡 Protection Against Wrong Matches
AzionGateway includes multiple safety systems:| Protection | Description |
|---|---|
| Unique Invoice References | Every payment uses a unique INV-{id} note |
| Smart Matching System | Exact note matching before fallback checks |
| Duplicate Protection | Prevents the same transaction from being used twice |
| Concurrent Safety | Handles multiple simultaneous payments safely |
Requirements
| Requirement | Details |
|---|---|
| Paymenter | v2 |
| PHP | 8.1+ |
| PHP IMAP Extension | Required |
| Gmail Account | With App Password |
| UPI Account | FamPay or compatible |
| Discord Webhook | Optional |
Installation
1. Install IMAP
sudo apt install php-imapsudo systemctl restart php8.2-fpm
2. Upload Gateway
/var/www/paymenter/extensions/Gateways/AzionGateway/3. Reload Composer
cd /var/www/paymentercomposer dump-autoload
4. Enable Gateway
Go to:Admin Panel → Gateways → Create
Select AzionGateway and enter:
- UPI ID
- Gmail Email
- Gmail App Password
⚙ Configuration Options
| Setting | Purpose |
|---|---|
| UPI ID | Payment receiving address |
| Payee Name | Name shown to customers |
| Gmail Email | IMAP inbox |
| Gmail App Password | Gmail authentication |
| Timeout | QR expiration timer |
| Poll Interval | Verification frequency |
| Debug Mode | Extra logs |
| Discord Webhook | Payment notifications |
Gmail Setup
- Enable 2-Step Verification
- Create a Google App Password
- Paste the credentials into Paymenter
Included Files
AzionGateway/├── AzionGateway.php
├── GmailVerifier.php
├── DiscordLogger.php
├── routes.php
├── resources/views/pay.blade.php
└── README.md
Support
Support is available through:- BuiltByBit discussions
- Direct contact
- Ticket support: https://discord.gg/GSW4JeHEVh
