ignore non-on-site donations

This commit is contained in:
Evert Prants 2017-08-27 20:59:41 +03:00
parent d083aaa346
commit c39f6d2a31
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 5 additions and 0 deletions

View File

@ -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 {