UPI
Quick Start
- Sign up at npci.org.in and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
UPI payment integration
| Provider ID | upi |
| Category | Bank Transfers |
| Website | npci.org.in |
Authentication
- Method: Basic Auth (Base64)
Configuration
Required Parameters
| Parameter | Description |
|---|---|
psp_id | PSP ID |
merchant_id | Merchant ID |
merchant_vpa | Merchant VPA |
api_key | API Key |
api_secret | API Secret |
base_url | Base URL |
Example Configuration
{
"provider": "upi",
"provider_params": {
"psp_id": "your_psp_id_here",
"merchant_id": "your_merchant_id_here",
"merchant_vpa": "your_merchant_vpa_here",
"api_key": "your_api_key_here",
"api_secret": "your_api_secret_here",
"base_url": "your_base_url_here"
}
}
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
success | charged | |
completed | charged | |
deemed | charged | |
SUCCESS | charged | |
COMPLETED | charged | |
DEEMED | charged | |
pending | charging | |
PENDING | charging | |
failed | failed | |
expired | failed | |
FAILED | failed | |
EXPIRED | failed | |
declined | rejected | |
DECLINED | rejected |