Create Invoice
Use create invoice API to create a payment invoice where you can pass the amount in USD and get a lightning invoice which can be displayed as a QR code directly on your website.
Last updated
Use create invoice API to create a payment invoice where you can pass the amount in USD and get a lightning invoice which can be displayed as a QR code directly on your website.
Last updated
POST
https://tapi.paysea.net/createinvoice
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Execute this sample curl to see the response.
use payment_request field data which always starts with "lnbc" and convert them to QR code to show it on your website for the user to scan and pay the invoice.
Content-Type*
application/json
Authorization*
Bearer <api key>
device_code*
paysea010
amount*
{ "amount": "0.01", "currency": "USD" }
currency should be always USD and amount should be in USD with up to 2 decimal places
memo*
"This is a test transaction"
required to link payment to your in house billing system