Optional payments

This commit is contained in:
Kieran
2022-09-07 16:25:31 +01:00
parent af62bd74eb
commit 150579c509
9 changed files with 92 additions and 36 deletions

View File

@@ -100,7 +100,7 @@ public class DownloadController : Controller
}
// check payment order
if (meta.Payment != default && meta.Payment.Service != PaymentServices.None)
if (meta.Payment != default && meta.Payment.Service != PaymentServices.None && meta.Payment.Required)
{
var orderId = Request.Headers.GetHeader("V-OrderId") ?? Request.Query["orderId"];
if (!await IsOrderPaid(orderId))