Custom redirect_url for PoS (#1924)

This commit is contained in:
Mario Dian
2020-10-13 15:51:28 +08:00
committed by GitHub
parent 9dcd8b6edf
commit ad22d3fd91
4 changed files with 14 additions and 1 deletions

View File

@@ -203,7 +203,9 @@ namespace BTCPayServer.Controllers
OrderId = orderId,
NotificationURL =
string.IsNullOrEmpty(notificationUrl) ? settings.NotificationUrl : notificationUrl,
RedirectURL = redirectUrl ?? Request.GetDisplayUrl(),
RedirectURL = !string.IsNullOrEmpty(redirectUrl) ? redirectUrl
: !string.IsNullOrEmpty(settings.RedirectUrl) ? settings.RedirectUrl
: Request.GetDisplayUrl(),
FullNotifications = true,
ExtendedNotifications = true,
PosData = string.IsNullOrEmpty(posData) ? null : posData,