LogoTRUONG PHAM
Home
Projects
Portfolio
Blogs
YouTube
Contact

Newsletter

Stay updated with technical artifacts and engineering insights.

LogoTRUONG PHAM

Building scalable software and sharing insights on technology & life.

Sitemap

  • Home
  • Projects
  • Portfolio
  • Blogs
  • YouTube
  • Contact

Connect

  • GitHub
  • LinkedIn
  • Email
  • YouTube

© 2024 TRUONG PHAM. © All rights reserved.

Privacy PolicyTerms of Service
Back to projects

QR Payment Gateway

Production-ready QR payment gateway.

Dynamic QR codes, bank callbacks, idempotent webhooks, and merchant reconciliation.

Live DemoView Architecture
QR Payment Gateway

Problem

Manual payment confirmation slows checkout and reconciliation.

Outcome

Instant verified payments with automated order updates.

Solution Architecture

Merchant QR gateway with dynamic codes, bank callbacks, idempotent webhooks, and POS order sync.

Idempotent

Webhook design

Realtime

Order updates

QR

Dynamic codes

1

Create QR

Amount-locked payload

2

Bank scan

Customer banking app

3

Callback

Signed bank webhook

retry

Verify

Idempotency + HMAC

5

Update order

POS / ecommerce notify

Retry on fail → back to Callbackidempotent

What we shipped

Merchant APIWebhook gatewayReconciliation UIPayment reports

No duplicate charges on replay

Merchant dashboard for settlements

VietQR-style flow compatible

Cross-cutting production layer

Auth & RBACRedis cacheObservability

Key Features

Webhook callbacks

Real-time status to POS and ecommerce systems.

Retry & idempotency

Safe replays without duplicate charges.

Dynamic QR

Amount-locked codes per transaction.

Instant verification

Automated confirm on bank callback.

Merchant dashboard

Settlements and payment reports in one place.

Tech Stack

Next.jsNestJSPostgreSQLRedisQR SDK

Need something similar?

Let's build your product.

Book a call