mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-11-15 19:07:38 +01:00
Optional payments
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user