@mia-burton/axerve-js
v0.2.4
Published
Axerve payment gateway for js app
Downloads
34
Readme
Axerve-js
A Node.js module for axerve api
Installation
npm install @mia-burton/axerve-js --save
yarn add @mia-burton/axerve-js
Usage
import { AxerveClient } from '@mia-burton/axerve-js'
const client = new AxerveClient(API_KEY, SHOP_LOGIN)
//Create order
client.createOrder(orderDetail)
//Submit payment
client.submitOrder(token, creditCard)
To override back-office user redirect url pass it to submitOrder
//Submit payment
client.submitOrder(token, creditCard, successUrl, errorUrl)
Enable sandbox env
On inizialization set sandbox
parameter to true
Test
npm run test