1.0.5 • Published 2 years ago

payminto-web-sdk v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Payminto Ngenius Web SDK (NodeJS)

Documentation.

Before you start, You will need your API key, Merchant ID and Outlet reference. These credentials can be gotten from the N-Genius merchant Online portal.

Services

  • Request an access token
  • Create an order

Getting Started

Installing SDK

npm install payminto-web-sdk

Setup & Usage

import  { getAuthToken, createAnOrder, oneTimePayment, fetchOrderByReference, capturePayment, refundCapture, create3ds,  resolve3ds } from 'payminto-web-sdk'

const params = {
    outletRef: ``,
    apiKey: ``,
    MID: ``,
    orderRef: ``,
    paymentRef: ``,
    captureRef: ``,
}

const body = {
    "action": "PURCHASE",
    "emailAddress": "tom.test@minto.com",
    "billingAddress": {
      "firstName": "Tom",
      "lastName": "Test"
    },
    "amount": {
    "currencyCode": "USD",
    "value": 150
  }
};

//Create an order
createAnOrder(params, body).then((data) => {
    // do something with body
    console.log(data)
}).catch((error) => {
    // do something with error
    console.log(error)
})
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago