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

@@ -314,6 +314,7 @@ namespace BTCPayServer.Controllers
ItemDesc = invoice.ProductInformation.ItemDesc,
Rate = ExchangeRate(paymentMethod),
MerchantRefLink = invoice.RedirectURL ?? "/",
RedirectAutomatically = invoice.RedirectAutomatically,
StoreName = store.StoreName,
InvoiceBitcoinUrl = paymentMethodId.PaymentType == PaymentTypes.BTCLike ? cryptoInfo.PaymentUrls.BIP21 :
paymentMethodId.PaymentType == PaymentTypes.LightningLike ? cryptoInfo.PaymentUrls.BOLT11 :