brighte-sdk-js-payment
v1.1.4
Published
Javascript SDK for interacting with payment service
Readme
Brighte Payment Service Javascript SDK
This library makes it easy to make calls to the brighte payment Service
installation
npm i brighte-sdk-js-payment
usage
const userId = 1,
auth = 'thisismyjwt',
url = 'https://api.brighte.com.au/v1/';
const api = new paymentService(url, auth);
const result = await api.getPaymentMethods(userId);supported methods
- getPaymentMethods(
userId) - savePaymentMethod(
paymentMethod) - updatePaymentMethod(
paymentMethod) - makePayment(
userId,methodId,amount,loanId)
language
Compiles to es2017.
