From c39f6d2a3186a015b2ca41a35abea9aa28944ab6 Mon Sep 17 00:00:00 2001 From: Evert Date: Sun, 27 Aug 2017 20:59:41 +0300 Subject: [PATCH] ignore non-on-site donations --- server/api/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/api/index.js b/server/api/index.js index a4468c3..03bb21e 100644 --- a/server/api/index.js +++ b/server/api/index.js @@ -385,6 +385,11 @@ const API = { if (verification !== 'VERIFIED') return null + // Ignore the adding of non-on-site donations + if (body.item_name && config.donations.name && body.item_name !== config.donations.name) { + return true + } + if (sandboxed) { console.debug('Sandboxed payment:', body) } else {