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

gpay-nodejs-sdk

v1.0.0

Published

Node.js SDK for GPay API Client.

Downloads

5

Readme

GPay Node.js SDK

A Node.js SDK for interacting with the GPay API.

Official API Documentation: https://gpay.ly/banking/doc/index.html

Installation

npm install gpay-nodejs-sdk
# or
yarn add gpay-nodejs-sdk

Usage

Import and Initialize

import GPayApiClient, { BaseUrl } from 'gpay-nodejs-sdk';

const client = new GPayApiClient(
  'your_api_key',
  'your_secret_key',
  'your_password',
  BaseUrl.PRODUCTION // or BaseUrl.STAGING
);

Get Wallet Balance

// Returns: Balance object
// Async/await style
const balance = await client.getBalance();
console.log(balance);

// Promise style
client.getBalance().then(balance => {
  console.log(balance);
});

Create Payment Request

// Returns: PaymentRequest object
// Async/await style
const paymentRequest = await client.createPaymentRequest('100', 'REF123', 'Payment for order');
console.log(paymentRequest);

// Promise style
client.createPaymentRequest('100', 'REF123', 'Payment for order').then(paymentRequest => {
  console.log(paymentRequest);
});

Check Payment Status

// Returns: PaymentStatus object
// Async/await style
const status = await client.checkPaymentStatus('request_id_here');
console.log(status);

// Promise style
client.checkPaymentStatus('request_id_here').then(status => {
  console.log(status);
});

Send Money

// Returns: SendMoneyResult object
// Async/await style
const result = await client.sendMoney('50', 'recipient_wallet_id', 'REF456', 'Send money');
console.log(result);

// Promise style
client.sendMoney('50', 'recipient_wallet_id', 'REF456', 'Send money').then(result => {
  console.log(result);
});

Get Statement

// Returns: Statement object
// Async/await style
const statement = await client.getStatement('2025-06-22');
console.log(statement);

// Iterate over transactions in the statement
for (const tx of statement.dayStatement) {
  console.log(tx); // Each tx is a StatementTransaction object
}

// Promise style
client.getStatement('2025-06-22').then(statement => {
  console.log(statement);
  // Iterate over transactions
  statement.dayStatement.forEach(tx => {
    console.log(tx);
  });
});

Check Wallet

// Returns: WalletCheck object
// Async/await style
const walletInfo = await client.checkWallet('wallet_gateway_id');
console.log(walletInfo);

// Promise style
client.checkWallet('wallet_gateway_id').then(walletInfo => {
  console.log(walletInfo);
});

Get Outstanding Transactions

// Returns: OutstandingTransactions object
// Async/await style
const outstanding = await client.getOutstandingTransactions();
console.log(outstanding);

// Iterate over outstanding transactions
for (const tx of outstanding.outstandingTransactions) {
  console.log(tx); // Each tx is an OutstandingTransaction object
}

// Promise style
client.getOutstandingTransactions().then(outstanding => {
  console.log(outstanding);
  // Iterate over transactions
  outstanding.outstandingTransactions.forEach(tx => {
    console.log(tx);
  });
});

Constants

You can also access the following constants:

  • BaseUrl (for environment selection)
  • OperationType (operation type enums)
  • TransactionStatus (transaction status enums)

License

MIT