Complete integration reference for WebPress Pay payment engine.
WebPress Pay is a direct-to-bank peer-to-peer UPI payment facilitation engine. It allows merchants to generate dynamic UPI QR codes and 1-tap mobile deep links (PhonePe, Google Pay, Paytm, BHIM, CRED) and reconciles payments in real time using 12-digit bank UTR numbers.
All API requests require authentication via your unique Merchant User Token (`user_token`). You can find or regenerate your secret token inside the Merchant Dashboard under API Credentials.
| Parameter | Value |
|---|---|
| Base URL | https://webpresspay.com |
| HTTP Method | POST |
| Content-Type | application/x-www-form-urlencoded or multipart/form-data |
| Response Format | application/json |
Initiates a payment session and returns a secure hosted checkout URL.
/api/create-order (or /payment/create_order.php)
| Field | Type | Required | Description |
|---|---|---|---|
user_token |
String | Yes | Your 32-character merchant API token. |
amount |
Numeric | Yes | Amount in INR (e.g. 100.00). |
order_id |
String | Yes | Unique order reference (alphanumeric, max 100 chars). |
customer_mobile |
String | Yes | 10-digit Indian mobile number of customer. |
redirect_url |
URL | Optional | URL where customer is redirected after payment completion. |
remark1 |
String | Optional | Custom metadata / note (passed back in webhooks). |
remark2 |
String | Optional | Additional custom reference note. |
{
"status": true,
"message": "Order Created Successfully",
"result": {
"orderId": "ORDER_1724749200",
"payment_url": "https://webpresspay.com/payment3/pay_now.php?token=a8f9c2e0b1d3..."
}
}
{
"status": false,
"message": "Invalid or unauthorized Merchant User Token"
}
Query the real-time settlement status of any previously initiated order.
/api/check-order-status (or /payment/check_order.php)
| Field | Type | Required | Description |
|---|---|---|---|
user_token |
String | Yes | Your merchant API token. |
order_id |
String | Yes | The order ID to look up. |
{
"status": "COMPLETED",
"message": "Transaction Successfully",
"result": {
"txnStatus": "COMPLETED",
"resultInfo": "Transaction Success",
"orderId": "ORDER_1724749200",
"status": "SUCCESS",
"amount": "100.00",
"date": "2026-08-27 14:30:00",
"utr": "423984719283"
}
}
Test whether your server can reach the WebPress Pay platform and confirm that your API token is valid without creating real orders.
/api/check-order-status with order_id = "TEST_PING_1788268062"
{
"status": true,
"message": "Connection Successful! Merchant API Token is verified and active.",
"result": {
"token_status": "VALID",
"mode": "LIVE"
}
}
When a payment is verified, our automated background worker sends an asynchronous HTTP POST request to your configured Webhook URL.
{
"order_id": "ORDER_1724749200",
"amount": "100.00",
"status": "SUCCESS",
"customer_mobile": "9707842047",
"remark1": "Order Checkout",
"remark2": ""
}
<?php
$payload = $_POST;
if (!empty($payload['status']) && $payload['status'] === 'SUCCESS') {
$orderId = $payload['order_id'];
$amount = $payload['amount'];
// Fulfill customer order in your database
// updateOrderStatus($orderId, 'PROCESSING');
// Always return HTTP 200 JSON
header('Content-Type: application/json');
echo json_encode(['status' => true, 'message' => 'Order fulfilled']);
exit;
}
?>
Download the official PHP SDK v1.3.0 for clean object-oriented integration.
<?php
require_once __DIR__ . '/WebPressPay.php';
$client = new WebPressPay('YOUR_MERCHANT_TOKEN', 'https://webpresspay.com');
// 1. Diagnostic test
$ping = $client->testConnection();
if (!$ping['success']) {
die("Connection failed: " . $ping['message']);
}
// 2. Create Order
$order = $client->createOrder([
'amount' => 250.00,
'order_id' => 'INV_' . time(),
'customer_mobile' => '9707842047',
'redirect_url' => 'https://yourwebsite.com/payment-complete'
]);
if (!empty($order['status'])) {
// Redirect customer
header('Location: ' . $order['result']['payment_url']);
exit;
}
?>
upi-payment-woocommerce.zip from the SDK Files Page.https://webpresspay.com) and Merchant Token.curl -X POST "https://webpresspay.com/api/create-order" \ -d "user_token=YOUR_MERCHANT_TOKEN" \ -d "amount=100.00" \ -d "order_id=ORDER_12345" \ -d "customer_mobile=9707842047" \ -d "redirect_url=https://yourwebsite.com/success"
| HTTP Code | Error Message | Cause & Solution |
|---|---|---|
401 |
Invalid or unauthorized Merchant User Token | Check that your user_token matches your active token in Merchant Dashboard. |
403 |
Merchant Account is Suspended/Banned | Your merchant account has been locked. Contact administrator support. |
400 |
Order ID already exists for this user | Pass a fresh, unique order_id for every new payment attempt. |
400 |
Your Subscription Plan has expired | Log in to Merchant Dashboard → Subscription and renew your plan. |