Allow POS to redirect invoices automatically after paid

closes #730
This commit is contained in:
Kukks
2019-04-11 11:08:42 +02:00
parent c79751829b
commit 1cf17872ab
10 changed files with 39 additions and 3 deletions

View File

@@ -79,6 +79,7 @@ namespace BTCPayServer.Controllers
public string CustomCSSLink { get; set; }
public string NotificationEmail { get; set; }
public string NotificationUrl { get; set; }
public bool RedirectAutomatically { get; set; }
}
[HttpGet]
@@ -105,7 +106,8 @@ namespace BTCPayServer.Controllers
CustomTipPercentages = settings.CustomTipPercentages != null ? string.Join(",", settings.CustomTipPercentages) : string.Join(",", PointOfSaleSettings.CUSTOM_TIP_PERCENTAGES_DEF),
CustomCSSLink = settings.CustomCSSLink,
NotificationEmail = settings.NotificationEmail,
NotificationUrl = settings.NotificationUrl
NotificationUrl = settings.NotificationUrl,
RedirectAutomatically = settings.RedirectAutomatically
};
if (HttpContext?.Request != null)
{
@@ -180,7 +182,8 @@ namespace BTCPayServer.Controllers
CustomTipPercentages = ListSplit(vm.CustomTipPercentages),
CustomCSSLink = vm.CustomCSSLink,
NotificationUrl = vm.NotificationUrl,
NotificationEmail = vm.NotificationEmail
NotificationEmail = vm.NotificationEmail,
RedirectAutomatically = vm.RedirectAutomatically
});
await UpdateAppSettings(app);