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

@mongolian-payment/golomt

v1.0.0

Published

Golomt Bank ecommerce payment SDK for Node.js - Create invoices, inquire transactions, pay by token

Downloads

74

Readme

@mongolian-payment/golomt

Golomt Bank ecommerce payment SDK for Node.js. Create invoices, inquire transaction status, and pay by token with automatic HMAC-SHA256 checksum generation.

Installation

npm install @mongolian-payment/golomt

Quick Start

import { GolomtClient } from "@mongolian-payment/golomt";

const client = new GolomtClient({
  endpoint: "https://ecommerce.golomtbank.com",
  secret: "your-hmac-secret",
  bearerToken: "your-bearer-token",
});

// Create an invoice
const invoice = await client.createInvoice({
  amount: 50000,
  transactionId: "order-12345",
  returnType: "POST",
  callback: "https://yoursite.com/payment/callback",
  getToken: false,
  socialDeeplink: false,
});

// Get payment URL to redirect the user
const paymentUrl = client.getPaymentUrl(invoice.invoice);
// => "https://ecommerce.golomtbank.com/payment/MN/..."

// Check transaction status
const status = await client.inquiry("order-12345");

// Pay with a saved token
const result = await client.payByToken(50000, "saved-token", "order-67890");

Configuration

Direct

const client = new GolomtClient({
  endpoint: "https://ecommerce.golomtbank.com",
  secret: "your-hmac-secret",
  bearerToken: "your-bearer-token",
});

From Environment Variables

import { loadConfigFromEnv, GolomtClient } from "@mongolian-payment/golomt";

// Reads GOLOMT_ENDPOINT, GOLOMT_SECRET, GOLOMT_BEARER_TOKEN
const client = new GolomtClient(loadConfigFromEnv());

API

createInvoice(input)

Create a payment invoice. The HMAC checksum is computed automatically.

| Field | Type | Description | | --------------- | ----------- | ------------------------------------ | | amount | number | Payment amount | | transactionId | string | Unique transaction identifier | | returnType | ReturnType| "POST", "GET", or "MOBILE" | | callback | string | Callback URL for payment result | | getToken | boolean | Generate a reusable payment token | | socialDeeplink | boolean | Generate a SocialPay deeplink |

inquiry(transactionId)

Check the status of a transaction.

payByToken(amount, token, transactionId, lang?)

Pay using a previously saved token. Language defaults to "MN".

getPaymentUrl(invoice, lang?, paymentMethod?)

Build a redirect URL for the Golomt payment page.

  • lang: "MN" (default) or "EN"
  • paymentMethod: "payment" (default) or "socialpay"

License

MIT