Pay to a LNURL-pay stringTo use this endpoint, decode a LNURL-pay QR code and perform a /GET request on the decoded url to get the JSON response. Then, ask the user for an exact amount to send (if necessary). Then, call this api with the necessary parameters. The JSON response from /GET call should be used as the params field in the request body amountMsat has to be within the bounds of maxSendable and minSendable.
Note
Some wallets do not support millisat (msat) transactions. If an invoice fails, it may be due to the use of millisatoshis. Consider using a whole-satoshi amount instead to ensure compatibility.
Webhook
Add a webhook URL and secret to receive and update when the transaction fails or settle.
Checkout the transaction object for details about the Hook !