Learn how to receive Lightning payments using the ZBD API.
Property | Description |
---|---|
amount | The Charge amount (in millisatoshis —> 1 satoshi = 1,000 millisatoshi). |
description | The Charge note or comment. |
internalId | An optional free-use attribute. Usually used by setting the Player/User ID of your Game/Application in order to link specific Charges to specific Players. |
callbackUrl | The URL ZBD API will make a POST HTTP request to with information about the Charges’s status updates. See Callbacks for more. |
expiresIn | The desired expiration time for this Charge (in seconds). |
/charges
API (or leverage one of our SDKs) by passing the correct attributes:
invoice.request
property as a QR Code that others can scan with their mobile apps, or you can put it under a button click.
Any Bitcoin Lightning-capable wallets can read, decode, and effect payments against these Charges.
status
attribute returned from the /charges/create
or /charges/get
API calls.
callbackUrl
property when creating that Charge. Whenever there are updates to the Charge (a payment was made, or Charge expires) the ZBD API will make a POST request to the URL provided in callbackUrl
, passing the Charge updates as data in the request.