LNPay Docs
Search…
Introduction
Welcome to the LNPay API docs!

Client SDKs

The libraries below are wrappers to help you work with the LNPay API. How to install:
Node.js
Python
Go
PHP
JavaScript
GitHub - MiguelMedeiros/lnpay: NPM Package for LNPay.co API.
GitHub
1
npm install lnpay
Copied!
GitHub - lnpay/lnpay-py
GitHub
1
pip install lnpay-py
Copied!
1
go get github.com/lnpay/lnpay-go
Copied!
1
composer require lnpay/lnpay-php
Copied!
This used client side - use the pak_ everywhere.
GitHub - lnpay/lnpay-js: LNPay JavaScript SDK
GitHub
1
<script src="https://unpkg.com/[email protected]^0.1/dist/lnpay.min.js"></script>
Copied!

Initializing the SDK

Node.js
Python
Go
PHP
JavaScript
1
import LNPay from 'lnpay';
2
3
const lnpay = LNPay({
4
secretKey: 'sak_XXXXXXX',
5
walletAccessKey: 'waka_XXXXXXX',
6
});
Copied!
1
import lnpay_py
2
3
# init lnpay
4
lnpay_py.initialize(lnpay_api_key)
Copied!
1
lnpaySecretKey := lnpay.TEST_KEY
2
// use your key here: "sak_..."
3
4
client := lnpay.NewClient(lnpaySecretKey)
Copied!
1
// Load the autoload file from composer's vendor directory
2
require '../vendor/autoload.php';
3
4
use LNPay\LNPayClient;
5
6
// Creating Client object
7
$lnPayClient = new LNPayClient(
8
'sak_KEY'
9
);
10
11
$lnPayClient->wallet->setWalletAccessKey('wal_KEY');
Copied!
1
LNPay.Initialize('pak_XXXXXXX');
Copied!

Postman Collection

Last modified 4mo ago