description |
---|
The goal of the LNPay API is to create a toolkit interface for interaction between nodes and external services. See below some examples / applications. |
The libraries below are wrappers to help you work with the LNPay API. How to install:
{% tabs %} {% tab title="JavaScript" %} {% embed url="https://github.com/lnpay/lnpay-js" %}
<script src="https://unpkg.com/lnpay-js@^0.1/dist/lnpay.min.js"></script>
{% endtab %}
{% tab title="Node.js" %}
npm install lnpay-js --save
{% endtab %}
{% tab title="Python" %} {% embed url="https://github.com/lnpay/lnpay-py" %}
pip install lnpay-py
{% endtab %}
{% tab title="Go" %} {% embed url="https://github.com/fiatjaf/lnpay-go" %}
go get github.com/fiatjaf/lnpay
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="JavaScript" %}
//Use your Public API Key found - this one here is presented as test
LNPay.Initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp');
{% endtab %}
{% tab title="Node.js" %}
//Use your Public API Key found - this one here is presented as test
LNPay.Initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp');
{% endtab %}
{% tab title="Python" %}
import lnpay_py
# init lnpay
lnpay_py.initialize(lnpay_api_key)
{% endtab %} {% endtabs %}