This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
brighte-labs/brighte-sdk-js-payment
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published