@blusalt/blusalt-payment-client
v0.0.15
Published
A library for connecting to blusalt payment APIs
Downloads
94
Readme
blusalt-payment-client
Installation
npm i @blusalt/blusalt-payment-client
Authentication
Please set an environment BLUSALT_API_KEY
containing your blusalt API key
Set API programmatically
import { Wallet } from '@blusalt/blusalt-payment-client';
const blusaltWallet = new Wallet(apiKey);
Wallet
import { Wallet } from '@blusalt/blusalt-payment-client';
const blusaltWallet = new Wallet();
const wallet = await blusaltWallet.createWallet({
wallet_reference: "reference",
currency: "NGN",
type: "bank",
customer: {
gender: "M",
first_name: "John",
last_name: "Doe",
middle_name: "John",
email: "[email protected]",
mobile_no: "2348023431321"
}
});