Ability to pass fields to POS app #181

This commit is contained in:
nicolas.dorier
2018-05-24 23:54:48 +09:00
parent 4e32dad1ea
commit dec5dbc0d2
7 changed files with 101 additions and 100 deletions

View File

@@ -109,6 +109,9 @@ namespace BTCPayServer.Controllers
}
entity.ProductInformation = Map<Invoice, ProductInformation>(invoice);
entity.RedirectURL = invoice.RedirectURL ?? store.StoreWebsite;
if (!Uri.IsWellFormedUriString(entity.RedirectURL, UriKind.Absolute))
entity.RedirectURL = null;
entity.Status = "new";
entity.SpeedPolicy = ParseSpeedPolicy(invoice.TransactionSpeed, store.SpeedPolicy);