Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neon-exchange/nash-link

Package Overview
Dependencies
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neon-exchange/nash-link

Nash Link SDK

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
8
Weekly downloads
 
Created
Source

Nash Pay SDK for Node.js / TypeScript

SDK for merchants to integrate Nash Pay on their backend.

  • npmjs.com/package/nash-pay
  • Nash Pay API Documentation
  • Github repository

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

FAQs

Package last updated on 01 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc