webUPI.sendPaymentToLightning()
Method
async function sendPaymentToLightning(args: SendPaymentToLightningArgs): SendPaymentToLightningResponse;
Parameters
interface SendPaymentToLightningArgs {
invoice: string; // The BOLT-11 invoice for the Lightning Network payment
callbackUrl: string; // The URL that the UPI app or cryptocurrency exchange will notify upon completion of the payment
}
Response
interface SendPaymentToLightningResponse {
acknowledgment: string; // A message acknowledging the initiation of the payment
}
Code Example
Last updated