0.2.2 • Published 4 years ago

payex-rest v0.2.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Payex REST Node.js Library

The Payex REST Node library provides convenient access to the Payex API from applications written in server-side JavaScript.

Please keep in mind that this package is for use with server-side Node that uses Payex access token.

Installation

Install the package with:

yarn add @urbaninfrastructure/payex-rest

Usage

The package needs to be configured with your account's access token which is available in your Payex Admin portal. Require it with the key's value:

const Payex = require('@urbaninfrastructure/payex-rest')
const payex = new Payex('token')

const purchaseResponse = await payex.payment.purchase({
  amount: 1000,
  currency: 'NOK',
  ...
})
0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago