diff options
| -rw-r--r-- | routes/payments.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/payments.js b/routes/payments.js index 633b94ee..51172251 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -257,6 +257,8 @@ export default { }, async buy({ body: { amount, number, year, month, cvc }, user }, res) { + if (!user.eligible) fail("not eligible"); + let stripe = "https://api.stripe.com/v1"; let { stripe: username } = config; |
