swedbank-pay-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Swedbank Pay Node.js Library

The Swedbank Pay Node library provides convenient access to the Swedbank Pay 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 swedbank-pay-js

Usage

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

const SwedbankPay = require('swedbank-pay-js')
const swedbankPay = new SwedbankPay('token')
 
const payment = await swedbankPay.payment.create({
  amount: 1000,
  currency: 'NOK',
  ...
})

Package Sidebar

Install

npm i swedbank-pay-js

Weekly Downloads

10

Version

1.0.0

License

MIT

Unpacked Size

139 kB

Total Files

163

Last publish

Collaborators

  • zr0zr0