Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 492 Bytes

File metadata and controls

25 lines (18 loc) · 492 Bytes

Unofficial hitpay node.js wrapper

Installation

Installing the package:

npm install hitpay --save
# or
yarn add hitpay

Basic Usage

The hitpay client needs to be configured with your API key and API salt, which are available in the Hitpay Dashboard.

const HitpayClient = require('hitpay');

const hitpay = new HitpayClient({
	apiKey: process.env.HITPAY_API_KEY,
	apiSalt: process.env.HITPAY_SALT,
	environment: 'sandbox',
});