Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Javascript SDK for communicating with payment service

Notifications You must be signed in to change notification settings

brighte-labs/brighte-sdk-js-payment

Repository files navigation

# 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
1. getPaymentMethods(`userId`)
2. savePaymentMethod(`paymentMethod`)
3. updatePaymentMethod(`paymentMethod`)
4. makePayment(`userId`, `methodId`, `amount`, `loanId`)

## language
Compiles to es2017.

About

Javascript SDK for communicating with payment service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published