8000 GitHub - boguslawwitek/lvlup-js: Simple library for LVLUP V4 API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

boguslawwitek/lvlup-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LVLUP-JS

A very simple JavaScript library for api.lvlup.pro/v4 and api.sandbox.lvlup.pro/v4.


Installation

npm i lvlup-js -S

Example #1 (Production)

const LvlupApi = require('lvlup-js');
const lvlup = new LvlupApi('API-KEY');

(async () => {
    const linkForPayment = await lvlup.createPayment('32', 'https://example.site/redirect', 'https://example.site/webhook');
    console.log(linkForPayment);
})()

Example #2 (Sandbox)

const LvlupApi = require('lvlup-js');
const lvlup = new LvlupApi('API-KEY', {env: 'sandbox'});

(async () => {
    const linkForPayment = await lvlup.createPayment('32', 'https://example.site/redirect', 'https://example.site/webhook');
    console.log(linkForPayment);
})()

License

MIT

Links

LVLUP-JS Documentation
GitHub Repository
npm package

Author

Bogusław Witek

About

Simple library for LVLUP V4 API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0