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

@paymentsgate/easy-api-nodejs

v1.0.0

Published

PaymentsGate Easy API client

Readme

Payments Gate Easy NodeJS Client

This is a complete NodeJS module for communication with paymentsgate service.

Features

  • Wallet, banks, deal, pay-in, payout, and FX methods
  • TypeScript-only source in src/* with compiled output in lib/*
  • Get wallet
  • Get banks list
  • Payin orders
  • Payot orders
  • Quotes (pre-payout quote calculate)

Usage

npm i @paymentsgate/easy-api-nodejs
const {
  EasyApiClient,
  Currencies,
  DealLanguages,
  DealSubtypes,
  createDealPayInRequest,
  createFxCalculationRequest,
} = require('@paymentsgate/easy-api-nodejs');

const client = new EasyApiClient({
  endpoint: 'https://api.example.com',
  credentialsPath: './examples/credentials.json',
});

const banks = await client.getBanks({
  tag: DealSubtypes.SBP,
});

const payin = await client.createPayIn(
  createDealPayInRequest({
    amount: 100,
    currency: Currencies.KZT,
    invoiceId: `INV-${Date.now()}`,
    clientId: `CLIENT-${Date.now()}`,
    type: DealSubtypes.P2P,
    lang: DealLanguages.RU,
  }),
);

const quote = await client.calculateFxPost(
  createFxCalculationRequest({
    currencyFrom: Currencies.USDT,
    currencyTo: Currencies.KZT,
    amount: 100,
    subtype: DealSubtypes.P2P,
  }),
);

Methods

  • getWallet()
  • getBanks({ search, tag })
  • getDeal(dealId)
  • createPayIn(payload)
  • createPayOut(payload)
  • calculateFxGet(params)
  • calculateFxPost(payload)

Errors

All request failures extend ApiError.

Available specialized errors include:

  • MissingApiKeyError
  • CredentialsFileError
  • InvalidEndpointError
  • TransportError
  • RequestError
  • UnauthorizedError
  • ForbiddenError
  • DuplicateDealError
  • InvalidCurrencyFromError
  • InvalidCurrencyToError
  • ExchangeDirectionNotAvailableError

Enums and DTO helpers

Runtime exports include:

  • Currencies
  • DealSubtypes
  • DealStatuses
  • DealDirections
  • DealLanguages
  • RecipientTypes
  • BankTypes
  • BankPaymentSystems
  • TtlUnits
  • WidgetVersions
  • DealPayOutBaseCalculationTypes
  • DealPayOutFeesStrategies
  • createDealPayInRequest(...)
  • createDealPayOutRecipient(...)
  • createDealPayOutRequest(...)
  • createFxCalculationRequest(...)

Examples

Ready-to-run examples are available in examples/config.js, examples/credentials.example.json, examples/create_payin.js, and examples/get_quote.js.

Run npm run build before launching the local examples, because they use the compiled lib/cjs output.

Available currencies

USDT EUR USD TRY CNY JPY GEL AZN INR AED KZT UZS TJS EGP PKR IDR BDT GBP RUB
THB KGS PHP ZAR ARS GHS KES NGN AMD BYN TRX ETH XOF CAD AFN ALL AUD BAM BGN
BHD BIF BND BOB BRL BWP BZD CDF CHF CLP COP CRC CVE CZK DJF DKK DOP DZD EEK
ERN ETB GNF GTQ HKD HNL HRK HUF ILS IQD IRR ISK JMD JOD KHR KMF KRW KWD LBP
LKR LTL LVL LYD MAD MDL MGA MKD MMK MNT MOP MUR MXN MYR MZN NAD NIO NOK NPR
NZD OMR PAB PEN PLN PYG QAR RON RSD RWF SAR SDG SEK SGD SOS SYP TND TOP TTD
TWD TZS UAH UGX UYU VEF VND YER ZMK

QAR RON RSD RWF SAR SDG SEK SGD SOS SYP TND TOP TTD TWD TZS UAH UGX UYU VEF VND YER ZMK ``

Available payment methods

p2p c2c m10 mpay sbp sbpqr iban upi imps spei pix rps ibps bizum rkgs kgsphone krungthainext sber kztphone bkash nagad alipay accountegp accountphp sberqr maya gcash banktransferphp banktransferars phonepe freecharge instapay instapayqr vodafonecash orangecash razn rtjs skzt scny vtbcny sgel seur stry sthb sberpay sberpay_s tpay opay moniepoint palmpay wave orangemoney orangemoneyjod moovmoney rtjscard ruzs amobile payid baridi multiwidget banktransfermad cih cashplus elqr odengi banktransferdop sinpemovil tryqr bsb banktransfermnt stcpay upiqr ifsc tjsbank sortgbp unionpay ecomazn ecomrub banktransferthb banktransferzar dcecomusd dcecomeur benefitpay cliq papara blik promptpayqr applepay ideal napas vndqr inrqr egpqr oneclick thaiqr mobilecom banktransferuyu banktransferngn mpesa airtel equitel fib