mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix: Refunds through API were ignoring BOLT11 expiration at store level (#6644)
This commit is contained in:
@@ -147,14 +147,13 @@ namespace BTCPayServer.Controllers
|
||||
return View(model);
|
||||
model.AutoApproveClaims = model.AutoApproveClaims && (await
|
||||
_authorizationService.AuthorizeAsync(User, storeId, Policies.CanCreatePullPayments)).Succeeded;
|
||||
await _pullPaymentService.CreatePullPayment(new CreatePullPayment
|
||||
await _pullPaymentService.CreatePullPayment(CurrentStore, new CreatePullPaymentRequest
|
||||
{
|
||||
Name = model.Name,
|
||||
Description = model.Description,
|
||||
Amount = model.Amount,
|
||||
Currency = model.Currency,
|
||||
StoreId = storeId,
|
||||
PayoutMethods = selectedPaymentMethodIds,
|
||||
PayoutMethods = selectedPaymentMethodIds.Select(p => p.ToString()).ToArray(),
|
||||
BOLT11Expiration = TimeSpan.FromDays(model.BOLT11Expiration),
|
||||
AutoApproveClaims = model.AutoApproveClaims
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user