mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Decouple Pull payment from wallets (#2987)
* Decouple Pull payments from wallet * Update _Nav.cshtml * Fixes
This commit is contained in:
@@ -63,12 +63,13 @@ namespace Microsoft.AspNetCore.Mvc
|
||||
scheme, host, pathbase);
|
||||
}
|
||||
|
||||
public static string PayoutLink(this LinkGenerator urlHelper, string walletId,string pullPaymentId, string scheme, HostString host, string pathbase)
|
||||
public static string PayoutLink(this LinkGenerator urlHelper, string walletIdOrStoreId,string pullPaymentId, string scheme, HostString host, string pathbase)
|
||||
{
|
||||
WalletId.TryParse(walletIdOrStoreId, out var wallet);
|
||||
return urlHelper.GetUriByAction(
|
||||
action: nameof(WalletsController.Payouts),
|
||||
controller: "Wallets",
|
||||
values: new {walletId, pullPaymentId},
|
||||
action: nameof(StorePullPaymentsController.Payouts),
|
||||
controller: "StorePullPayments",
|
||||
values: new {storeId= wallet?.StoreId?? walletIdOrStoreId , pullPaymentId},
|
||||
scheme, host, pathbase);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user