npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@laranex/nestjs-myanmar-payments

v4.0.0-dev.18

Published

NestJS integration for Myanmar payment gateways: KBZ Pay, Wave Pay, Wave Pay Mini App, AYA Pay, Yoma MMQR and CyberSource. Built on Node Myanmar Payments. Injectable module, verified callbacks and test fakes.

Downloads

2,348

Readme

NestJS Myanmar Payments

npm Tests License

NestJS integration for Myanmar payment gateways: KBZ Pay, Wave Pay, Wave Pay Mini App, AYA Pay, Yoma MMQR and CyberSource. Built on Node Myanmar Payments. Injectable module, verified callbacks and test fakes. Built for humans and AI agents.

Every Myanmar payment gateway signs, sends and acknowledges payments its own way, with its own rules for amounts. NestJS Myanmar Payments puts KBZ Pay, Wave Pay, Wave Pay Mini App, AYA Pay, Yoma MMQR and CyberSource behind one injectable service. All gateway logic lives in Node Myanmar Payments; this package wires it into NestJS.

Why NestJS Myanmar Payments

  • One module, every gateway. MyanmarPaymentsModule.forRoot() or forRootAsync() provides MyanmarPaymentsService with kbzPay(), wavePay(), wavePayMiniApp(), ayaPay(), yomaMmqr() and cyberSource(), configured from environment variables or module options.
  • A typed result for each flow. Every payment returns a RedirectPayment, FormPayment, QrPayment, AppPayment or MiniAppPayment, so you always know what to do next. See Payment Flows.
  • Exact amounts. Whole numbers or Amount values, never floats, checked against each gateway's documented rules before any request is sent.
  • Verified callbacks. @VerifiedCallback() checks the gateway's signature against the exact body it sent and injects a PaymentCallback whose status is one PaymentStatus; @AcknowledgeCallback() sends the response the gateway expects.
  • NestJS all the way down. Injectable gateways (@InjectKbzPay() and the rest), Express or Fastify, @nestjs/config for settings, @nestjs/cache-manager for shared Yoma MMQR and Wave Pay Mini App tokens, and AYA Pay and CyberSource checkout forms that open from an encrypted link.
  • Easy to test. A fake fetch sees every gateway call, MyanmarPaymentsService can be overridden, and signed callbacks can be posted to your own routes. See Testing.
  • Your webhooks, your storage. The package never stores webhooks; the docs show the recommended store, acknowledge and process-once flow as sample code. See Handling Webhooks.
  • Ready for AI agents. An agent skill, installed with npx skills add, teaches coding agents to use the package correctly.

Installation

Requires Node.js 20+ and NestJS 10 to 12, on the Express (@nestjs/platform-express) or Fastify (@nestjs/platform-fastify) adapter.

npm install @laranex/nestjs-myanmar-payments@next

Until v4.0.0 is released the package ships 4.0.0-dev.* pre-releases, so install the next tag.

Documentation

The full documentation lives at laranex.vercel.app/nestjs-myanmar-payments:

  • Introduction: what NestJS Myanmar Payments does and why to use it
  • Installation: registering the module, keeping the raw body and what the package exports
  • AI Agent Skill: installing the agent skill with npx skills add
  • Configuration: environment variables, production and UAT endpoints, the HTTP client, the auto-submit form route and the cache
  • Amounts: exact amounts and each gateway's rules for decimals and minimums
  • Payment Flows: redirect, form, QR and app payments and the typed result each returns
  • Callbacks & Status: verifying callbacks, PaymentStatus, acknowledging and status checks
  • Handling Webhooks: the recommended verify, store, acknowledge and process-once flow
  • Testing: a fake fetch, signed callbacks with supertest, overriding the service and following form links
  • KBZ Pay: PWA redirect, QR and in-app payments, status checks and callbacks
  • Wave Pay: redirect payments with line items and callbacks
  • Wave Pay Mini App: access tokens, signed mini app payments and callbacks verified against the request URL
  • AYA Pay: the AYA Payment Gateway hosted checkout, channel discovery, status checks and callbacks
  • Yoma MMQR: QR images, QR renewal, status checks and callbacks
  • CyberSource: Secure Acceptance card payments with a signed hosted checkout form
  • Results: every field of RedirectPayment, FormPayment, QrPayment and AppPayment
  • PaymentCallback & Status: every field of PaymentCallback, PaymentStatusResult and PaymentStatus
  • Errors: validation, API, signature and configuration errors

License

MIT. See LICENSE.md.