SShortSingh.
Back to feed

How QR Code Cashback Systems Use Unique Codes, Fraud Checks and UPI Payouts

0
·8 views

QR code cashback is growing fast in India, with brands printing a unique code on each product pack that buyers scan to receive money in their UPI account within minutes. Each code is generated randomly or signed cryptographically so it cannot be guessed, and is stored with its batch, product and reward details along with a status. The backend verifies each scan, claims the code atomically to prevent double redemption, and ties the reward to a verified user. Fraud is limited through rate limits, velocity and geographic checks, and holds on suspicious activity, while rewards are credited to an internal ledger wallet and paid out via bank UPI APIs using idempotency keys and asynchronous confirmation. Brands also gain first-party data on sales and repeat buyers from each scan.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Generating Realistic Brazilian Job Titles in Python with Faker

A Python tutorial shows how to use the faker_job_brazil package to produce plausible Brazilian Portuguese occupation names for test data. The package adds a profissao() method to Faker that picks a random title from an embedded list of occupations. The guide covers installation in an isolated environment, registering the provider on a Faker instance, and seeding the generator for reproducible output. It also cautions that the package is an early, Alpha-stage release (0.0.1.dev0) with limited validation and outdated Python classifiers. Developers are advised to pin versions and avoid asserting specific random values in brittle tests.

0
ProgrammingDEV Community ·

Developer builds zero-dependency Mega.nz downloader for macOS without Java

A developer wanted to download Mega links on a Mac without installing a Java runtime, so they built MegaGet, a small Node server paired with a local web interface. The write-up explains how Mega's 32-byte file key is split to derive the AES key and nonce, which allows resuming interrupted downloads by setting the CTR counter to the byte offset divided by 16. It also describes how the chunked CBC-MAC integrity check maps onto Node's built-in aes-128-cbc, and how login's HTTP 402 Hashcash challenge is solved across four worker threads in a few seconds. The tool does not bypass Mega's transfer quota but waits and resumes when it is reached, and it is download-only. The project is MIT-licensed, has been tested mainly against a mock server, and the author is seeking real-world bug reports.

0
ProgrammingDEV Community ·

Ivory Adds ZooKeeper Plugin for Troubleshooting Ensemble Leaders, Followers and Znodes

A new ZooKeeper plugin for the Ivory tool lets operators inspect an ensemble's leader, followers, sync state and znodes from one screen. ZooKeeper coordinates systems such as ClickHouse replication and leader election in other HA tools, so its failures can cause hard-to-trace outages. Previously, diagnosing these issues meant manually running four-letter-word commands like mntr on each node, which were often blocked by the whitelist setting. Ivory reads the ensemble through mntr and conf commands and shows each node's role, members and version, flagging nodes configured into a different ensemble. The tool deliberately omits per-follower replication lag, since an inaccurate figure would be worse than none, and it offers configuration viewing and znode management but not manual leader election.

0
ProgrammingDEV Community ·

Developer tracks which pages AI crawlers read using a Cloudflare Worker and D1

A web developer describes how analytics miss whether ChatGPT and other AI crawlers read a page, since those bots do not run JavaScript. Running on Cloudflare Workers, they added about a hundred lines of code that count crawler requests per day, page, bot and status in a D1 database, storing no IP addresses, user agents or personal data. Only crawlers whose vendors document their user-agent tokens are counted, and the developer notes that user agents can be faked, so the numbers reflect claimed identity. Within a day the tracking revealed that newly published pages linked only from the sitemap had not been fetched by OpenAI's search crawler or Bingbot, prompting the developer to link them from the home page and related guides. The write happens after each response and adds one database write per crawler page view.