mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Greenfield: Fix missing payment data (#4233)
* Greenfield: Fix missing payment data Fixes #4229. * Client: Return payment data from PayLightningInvoice * Add test for PayLightningInvoice response
This commit is contained in:
@@ -381,10 +381,11 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
await GetController<GreenfieldStoreLightningNodeApiController>().GetDepositAddress(cryptoCode, token));
|
||||
}
|
||||
|
||||
public override async Task PayLightningInvoice(string storeId, string cryptoCode,
|
||||
public override async Task<LightningPaymentData> PayLightningInvoice(string storeId, string cryptoCode,
|
||||
PayLightningInvoiceRequest request, CancellationToken token = default)
|
||||
{
|
||||
HandleActionResult(await GetController<GreenfieldStoreLightningNodeApiController>().PayInvoice(cryptoCode, request, token));
|
||||
return GetFromActionResult<LightningPaymentData>(
|
||||
await GetController<GreenfieldStoreLightningNodeApiController>().PayInvoice(cryptoCode, request, token));
|
||||
}
|
||||
|
||||
public override async Task<LightningInvoiceData> GetLightningInvoice(string storeId, string cryptoCode,
|
||||
|
||||
Reference in New Issue
Block a user