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.
Creating a new invoice
create invoice API
POST
https://tapi.paysea.net/createinvoice
Headers
Name
Type
Description
Content-Type*
application/json
Authorization*
Bearer <api key>
Request Body
Name
Type
Description
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
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.
Last updated