@neon-exchange/nash-link
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Nash Pay SDK for Node.js / TypeScript

SDK for merchants to integrate Nash Pay on their backend.

Quickstart

Install with

# npm
npm install --save @neon-exchange/nash-link

# yarn
yarn add @neon-exchange/nash-link

Start building!

 import { NashLinkApi } from '@neon-exchange/nash-link'
 const api = new NashLinkApi('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

Readme

Keywords

none

Package Sidebar

Install

npm i @neon-exchange/nash-link

Weekly Downloads

0

Version

1.0.9

License

BSD-2-Clause

Unpacked Size

18.7 kB

Total Files

6

Last publish

Collaborators

  • ethanfast
  • localhuman
  • keyrock-ninjas
  • jankj
  • romulo.nash
  • canesin