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
npm install lnpay
GitHub - lnpay/lnpay-py
GitHub
pip install lnpay-py
go get github.com/lnpay/lnpay-go
composer require lnpay/lnpay-php
This used client side - use the pak_ everywhere.
GitHub - lnpay/lnpay-js: LNPay JavaScript SDK
GitHub
<script src="https://unpkg.com/[email protected]^0.1/dist/lnpay.min.js"></script>

Initializing the SDK

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

Postman Collection

Copy link
On this page
Client SDKs
Initializing the SDK
Postman Collection