async Task <LightningInvoice> ILightningInvoiceClient.GetInvoice(string invoiceId, CancellationToken cancellation)
        {
            var invoice = await GetInvoice(invoiceId, cancellation);

            if (invoice == null)
            {
                return(null);
            }
            return(ChargeClient.ToLightningInvoice(invoice));
        }
Example #2
0
 async Task <LightningInvoice> ILightningListenInvoiceSession.WaitInvoice(CancellationToken token)
 {
     return(ChargeClient.ToLightningInvoice(await WaitInvoice(token)));
 }