Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Generates a valid jwt for Cardinal Commerce payment gateway

Notifications You must be signed in to change notification settings

heyjordn/cardinal-commerce-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cardinal-commerce-jwt

Generates a signed and valid jwt compatible with Cardinal Commerce

Cardinal Commerce requires a valid signed jwt from the server to initialise it's Songbird library but however doesn't provide a guide for generating a valid one in node.js. This libray aims to ease that process.

Usage

const cardinalCommerceJwt = require('cardinal-commmerce-jwt')

async function(){
  let jwt = await cardinalCommerceJwt({
    apiKey: 'viabcuwyvey',
    apiIdentifier: 'yvtchJKShdbC',
    orgUnitId: 'bc7cbsdycvvf',
  })
}

Install

λ npm install --save cardinal-commerce-jwt

Test

Run tests with

λ npm run test

About

Generates a valid jwt for Cardinal Commerce payment gateway

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published