PiiPharma Loyalty Program (Contract) logo

PiiPharma Loyalty Program (Contract) · 🇮🇳 · May 2026 - Present

PiiPharma Loyalty Program (Contract): QR Scanning in the Browser, Built for Low-End Phones

Sole developer — product design, full-stack build, and rollout
View live site ↗

Type

Contract

Location

India

Duration

May 2026 - Present

SvelteKitTypeScriptTailwind CSSSupabaseQR ScanningWeb WorkersCashfree PayoutsWhatsApp OTP

The Brief

Since May 2026, Ayush Jhunjhunwala has been building a QR code loyalty program for PiiPharma, an Indian pharmaceutical company. Their retailer cashback program previously ran entirely on WhatsApp messages, Excel sheets, and manual Cashfree uploads. The replacement is a mobile-first web portal where retailers scan QR-coded coupons, log in with a WhatsApp OTP, and submit claims — while an admin reviews each claim and exports a bulk UPI payout file in one click.

What I Built

  • In-browser QR coupon scanning — works on low-end Android phones, no app install
  • Web Worker based QR decoding so scanning never blocks the camera feed
  • OTP login via WhatsApp Business API with SMS fallback
  • Automatic duplicate-claim rejection by coupon serial number
  • Admin dashboard: claim review queue with photo, serial, retailer, and product
  • Cashfree-compatible CSV export for bulk UPI cashback payouts
  • Per-product coupon designer with live preview for print-ready QR coupons

Technical Highlight

QR Scanning in the Browser, Built for Low-End Phones

The retailers in this loyalty program are small pharmacy shops, often on budget Android phones. Instead of forcing an app download, Ayush Jhunjhunwala built the QR coupon scanner directly into the mobile web portal: the camera feed runs in the page while a dedicated Web Worker decodes QR frames off the main thread, keeping the scanner smooth even on weak hardware. Combined with serial-number deduplication, this turned a fraud-prone manual coupon process into a self-serve digital loyalty system with no installation barrier.

Outcome

The portal at loyalty.piipharma.com is replacing a fully manual WhatsApp → Excel → Cashfree workflow. Coupon claims that previously lived in chat threads now flow through a single review queue, and cashback payouts are exported in one click — with duplicate claims rejected automatically before they ever reach the admin.

FAQ

What is a QR code loyalty program?
A QR code loyalty program lets a business reward customers or retailers through scannable QR codes instead of paper records. For PiiPharma, each coupon carries a unique QR code: retailers scan it from their phone browser, the claim is verified against duplicates, and approved cashback is paid out via UPI — no app install required.
Can a QR code loyalty system work for small retailers on basic phones?
Yes — this system was specifically built for small pharmacy retailers on low-end Android phones. Scanning happens in the mobile browser with Web Worker decoding for smooth performance, and login uses WhatsApp OTP, which retailers already know how to use.
How much does a custom loyalty program app cost?
A custom loyalty program is a one-time build with no per-month platform subscription — you own the code. Cost depends on scope (scanning, payouts, admin tooling). Ayush Jhunjhunwala discusses scope and pricing upfront before any work begins; visit the contact page to talk through your use case.
How are loyalty payouts handled in this system?
Admins review claims in a dashboard and export a Cashfree-compatible CSV to trigger bulk UPI payouts to retailers. The system works with the company’s existing payment account — no new payment vendor or recurring platform fees were introduced.

Working on something similar?

Let's build it together.

I'm available for contracts — local businesses, startups, and everything in between.

Get in touch →