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:

Initializing the SDK

Node.js
Python
Go
PHP
JavaScript
Node.js
import LNPay from 'lnpay';
const lnpay = LNPay({
secretKey: 'sak_XXXXXXX',
walletAccessKey: 'waka_XXXXXXX',
});
Python
import lnpay_py
# init lnpay
lnpay_py.initialize(lnpay_api_key)
Go
lnpaySecretKey := lnpay.TEST_KEY
// use your key here: "sak_..."
client := lnpay.NewClient(lnpaySecretKey)
PHP
// 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');
JavaScript
LNPay.Initialize('pak_XXXXXXX');

Postman Collection