1.1.4 • Published 4 years ago
brighte-sdk-js-payment v1.1.4
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.