AWS Builder Center
 Building SatarkMerchant: A Zero-Hardware UPI Fraud Defense System on AWS

Building SatarkMerchant: A Zero-Hardware UPI Fraud Defense System on AWS

SatarkMerchant is a zero-hardware, AWS serverless web application that protects micro-merchants from physical UPI QR fraud using real-time optical scanning and cloud verification.

India's UPI (Unified Payments Interface) has revolutionized digital transactions, with over 50 million micro-merchants relying on printed paper QR stands to accept daily payments. But this massive scale has introduced a critical physical vulnerability: the "Paper Blindspot."
Scammers are increasingly exploiting this by printing duplicate QR stickers with identical dimensions and discreetly pasting them over authentic merchant counter stands during peak rush hours. Customers scan the code, the payment goes through instantly, but the money drains directly into the scammer’s bank account. Currently, street vendors have zero ways to audit their physical storefronts.
The Solution: Flipping the Camera Around For the WeMakeDevs × AWS Bharat Builds "First Commit" Hackathon, I built SatarkMerchant. Instead of asking customers to scan, SatarkMerchant empowers the merchant to scan and audit their own counter QR using just their smartphone camera.
I wanted to build an enterprise-grade threat detection system without forcing micro-merchants to buy expensive POS hardware or IoT biometric sensors. To achieve this, I turned to the AWS serverless stack.
The Serverless Architecture The architecture was designed for sub-200ms latency to ensure merchants can audit their stands instantly during a busy workday.
  1. The Edge Frontend: Hosted on AWS Amplify, the application is a responsive SPA (Single Page Application) built with HTML5 Web Assembly for high-speed optical edge detection.
  1. The Ingestion Layer: When a QR is scanned, the raw payload is sent via a RESTful HTTP POST request to Amazon API Gateway, utilizing direct Lambda Proxy Integration.
  1. The Decision Engine: AWS Lambda (Python 3.10 / Boto3) acts as the brain of the operation. It parses the incoming payload, extracts the target VPA (UPI ID), and queries the database.
  1. The Source of Truth: The baseline, authentic VPAs for registered businesses are securely stored in Amazon DynamoDB. Because it’s a NoSQL key-value store, the lookup happens in single-digit milliseconds.
  1. Automated Incident Response: If the Lambda function detects a cryptographic mismatch between the scanned QR and the DynamoDB record, it immediately publishes a message to Amazon SNS and Amazon SES, dispatching a real-time email or SMS threat alert to the merchant.
The Impact of Serverless By leveraging AWS serverless technologies, SatarkMerchant has zero idle server costs, scales infinitely, and requires absolutely zero upfront hardware investment from the merchant. It brings military-grade cloud security to the bottom tier of the digital economy, protecting the hard-earned daily revenue of India's street vendors.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article