mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Lightning: Add GetPayment methods to local client (#3657)
I missed adding them in #3557.
This commit is contained in:
@@ -504,6 +504,13 @@ namespace BTCPayServer.Controllers.Greenfield
|
|||||||
await _storeLightningNodeApiController.GetInvoice(cryptoCode, invoiceId));
|
await _storeLightningNodeApiController.GetInvoice(cryptoCode, invoiceId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override async Task<LightningPaymentData> GetLightningPayment(string storeId, string cryptoCode,
|
||||||
|
string paymentHash, CancellationToken token = default)
|
||||||
|
{
|
||||||
|
return GetFromActionResult<LightningPaymentData>(
|
||||||
|
await _storeLightningNodeApiController.GetPayment(cryptoCode, paymentHash));
|
||||||
|
}
|
||||||
|
|
||||||
public override async Task<LightningInvoiceData> CreateLightningInvoice(string storeId, string cryptoCode,
|
public override async Task<LightningInvoiceData> CreateLightningInvoice(string storeId, string cryptoCode,
|
||||||
CreateLightningInvoiceRequest request,
|
CreateLightningInvoiceRequest request,
|
||||||
CancellationToken token = default)
|
CancellationToken token = default)
|
||||||
@@ -560,6 +567,13 @@ namespace BTCPayServer.Controllers.Greenfield
|
|||||||
await _lightningNodeApiController.GetInvoice(cryptoCode, invoiceId));
|
await _lightningNodeApiController.GetInvoice(cryptoCode, invoiceId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override async Task<LightningPaymentData> GetLightningPayment(string cryptoCode,
|
||||||
|
string paymentHash, CancellationToken token = default)
|
||||||
|
{
|
||||||
|
return GetFromActionResult<LightningPaymentData>(
|
||||||
|
await _lightningNodeApiController.GetPayment(cryptoCode, paymentHash));
|
||||||
|
}
|
||||||
|
|
||||||
public override async Task<LightningInvoiceData> CreateLightningInvoice(string cryptoCode,
|
public override async Task<LightningInvoiceData> CreateLightningInvoice(string cryptoCode,
|
||||||
CreateLightningInvoiceRequest request,
|
CreateLightningInvoiceRequest request,
|
||||||
CancellationToken token = default)
|
CancellationToken token = default)
|
||||||
|
|||||||
Reference in New Issue
Block a user