How Client-Side Amount Tampering Occurs in UPI Checkouts
Two common vectors target online checkouts: browser DevTools parameter tampering (altering JSON prices sent from frontend JavaScript before order creation) and manual UPI amount editing inside third-party apps (scanning or importing an intent and paying ₹1 instead of ₹999).
Server-Derived Storefront & Subscription Pricing
Inside UPIGateway.dev's `POST /api/create-order` pipeline, whenever `product_id` is supplied, the server retrieves authoritative product price and shipping fees directly from PostgreSQL and ignores client-supplied price fields. Similarly, developer integrations are instructed to map SKU and plan prices solely on backend servers.
Real-Time Detection & FLAGGED_UNDERPAID Response
When our auto-capture verifiers match an incoming bank credit to a pending checkout session but detect that the settled rupee value is below the expected `order.amount`, the order transitions to `FLAGGED_UNDERPAID` instead of `SUCCESS`.
{
"status": false,
"message": "Payment rejected: Underpaid transaction detected",
"result": {
"txnStatus": "FAILED",
"orderId": "ORD_1732948102",
"status": "FLAGGED_UNDERPAID",
"amount": "999",
"utr": "433412345678",
"redirect_url": null
}
}