1.0.8 • Published 4 years ago

nash-pay v1.0.8

Weekly downloads
12
License
BSD-2-Clause
Repository
github
Last release
4 years ago

Nash Pay SDK for Node.js / TypeScript

SDK for merchants to integrate Nash Pay on their backend.

Quickstart

Install with

# npm
npm install --save nash-pay

# yarn
yarn add nash-pay

Start building!

import { NashPayApi } from 'nash-pay'

const api = new NashPayApi('sandbox', `<YOUR_API_KEY>`, `<YOUR_API_SECRET_KEY>`)

// Create a new invoice:
const invoiceCreateResponse = await api.createInvoice({
  price: 10
  currency: 'eur'
})

// Get an invoice by ID:
const invoiceGetResponse = await api.getInvoice(invoiceId)

Take a look at the examples, for instance invoice-create-and-get.ts.

You can run this example like this:

$ npm install -g ts-node
$ ts-node examples/invoice-create-and-get.ts

Developing

These are the two main files:

Often used yarn commands:

yarn install
yarn build
yarn lint
yarn test
1.0.8

4 years ago

1.0.2

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago