jenkins-bot has submitted this change and it was merged.
Change subject: Kill any configured fraud checks before making recurring charges
......................................................................
Kill any configured fraud checks before making recurring charges
Bug: T141487
Change-Id: Ia50000b42adf955aeb001cf1a8e30466eb3581a4
---
M sites/all/modules/recurring_globalcollect/recurring_globalcollect.module
1 file changed, 22 insertions(+), 0 deletions(-)
Approvals:
Ejegg: Looks good to me, approved
jenkins-bot: Verified
diff --git
a/sites/all/modules/recurring_globalcollect/recurring_globalcollect.module
b/sites/all/modules/recurring_globalcollect/recurring_globalcollect.module
index 40fe919..ab4cf64 100644
--- a/sites/all/modules/recurring_globalcollect/recurring_globalcollect.module
+++ b/sites/all/modules/recurring_globalcollect/recurring_globalcollect.module
@@ -137,6 +137,26 @@
}
/**
+ * Turn off fraud checking for this run. We've already validated the donor to
+ * some degree when starting the subscription.
+ */
+function recurring_globalcollect_disable_fraud_checks() {
+ global $wgDonationInterfaceEnableCustomFilters,
+ $wgDonationInterfaceEnableMinfraud,
+ $wgDonationInterfaceEnableReferrerFilter,
+ $wgDonationInterfaceEnableSourceFilter,
+ $wgDonationInterfaceEnableIPVelocityFilter,
+ $wgDonationInterfaceEnableSessionVelocityFilter;
+
+ $wgDonationInterfaceEnableCustomFilters = false;
+ $wgDonationInterfaceEnableMinfraud = false;
+ $wgDonationInterfaceEnableReferrerFilter = false;
+ $wgDonationInterfaceEnableSourceFilter = false;
+ $wgDonationInterfaceEnableIPVelocityFilter = false;
+ $wgDonationInterfaceEnableSessionVelocityFilter = false;
+}
+
+/**
* recurring_globalcollect_batch_process
*
* This is the entry function for this module.
@@ -154,6 +174,8 @@
*/
function recurring_globalcollect_batch_process($options = array()) {
+ recurring_globalcollect_disable_fraud_checks();
+
// The number of contributions to process
if ( array_key_exists( 'batch', $options ) ) {
$batch = intval( $options['batch'] );
--
To view, visit https://gerrit.wikimedia.org/r/306310
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia50000b42adf955aeb001cf1a8e30466eb3581a4
Gerrit-PatchSet: 3
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Cdentinger <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits