GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - biggaji/pay-lib: A test nodejs demo payment library for disbursing payouts to family or friends

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

pay-lib

A test nodejs demo payment library for disbursing payouts to family or friends

Requirements

Node 8, 10 or higher

Installation

Install the package with:

npm install --save pay-lib 
# or 
yarn add pay-lib  

Usage

const payLib = require("pay-lib");
//Create an array of object receipents, even if it is just a receipent

const receipents = [
  {
    name: "Tobi",
    amount: 9000000000
  },
  {
    name: "Prosper",
    amount: 4000000000
  },
  {
    name: "Ire",
    amount: 4000000000
  }
];

//Now pass the receipents array to the send method of the paylib disburse property

let paymentIntents = payLib.disburse.send(receipents);

//You can choose to display the response anyhow, here i will log it to the console

console.log(paymentIntents);

This would return a array objects containing details of each /receipent transactions

Example response

[
  {
    "name": "Tobi",
    "amount": 9000000000,
    "isSent": true,
    "sentAt": 1641746707977,
    "id": "PAYLIB-ID2198635",
    "message": "Transaction successful"
  },
  {
    "name": "Prosper",
    "amount": 4000000000,
    "isSent": true,
    "sentAt": 1641746707977,
    "id": "PAYLIB-ID7381044",
    "message": "Transaction successful"
  },
  {
    "name": "Ire",
    "amount": 4000000000,
    "isSent": true,
    "sentAt": 1641746707978,
    "id": "PAYLIB-ID9864517",
    "message": "Transaction successful"
  }
]

Usage

Live test project link coming

About

A test nodejs demo payment library for disbursing payouts to family or friends

www.npmjs.com/package/pay-lib

Topics

biggajidemopaymentpayment-librarytobi-ajibade

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.