Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/301067
Change subject: [WIP] shovel in more DonationInterface configuration
......................................................................
[WIP] shovel in more DonationInterface configuration
TODO: Manage a shared configuration snippet. Don't find the minimum config
empirically, instrument getGlobal to tell us what was looked up and set to
exception if any config fields are undefined.
Change-Id: Ic807a246913c5d336509779afddf4c752569c73d
---
M sites/all/modules/wmf_audit/globalcollect/orphan_rectify.drush.inc
1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm
refs/changes/67/301067/1
diff --git a/sites/all/modules/wmf_audit/globalcollect/orphan_rectify.drush.inc
b/sites/all/modules/wmf_audit/globalcollect/orphan_rectify.drush.inc
index a4235a7..ce4446e 100644
--- a/sites/all/modules/wmf_audit/globalcollect/orphan_rectify.drush.inc
+++ b/sites/all/modules/wmf_audit/globalcollect/orphan_rectify.drush.inc
@@ -53,6 +53,29 @@
'time_buffer' => variable_get(
'ingenico_orphan_rectify_time_buffer', 60 * 20 ),
'target_execute_time' => variable_get(
'ingenico_orphan_rectify_maximum_execute_time', 60 * 5 ),
);
+ global $wgDonationInterfaceGatewayAdapters;
+ wgDonationInterfaceGatewayAdapters = array(
+ 'GlobalCollectAdapter',
+ 'AmazonAdapter',
+ 'AdyenAdapter',
+ 'AstroPayAdapter',
+ 'PaypalExpressAdapter',
+ 'PaypalLegacyAdapter'
+ );
+ global $wgDonationInterfaceForbiddenCountries;
+ $wgDonationInterfaceForbiddenCountries = array();
+ global $wgDonationInterface3DSRules;
+ $wgDonationInterface3DSRules = array(
+ 'INR' => array(),
+ );
+ global $wgGlobalCollectGatewayEnabled,
$wgGlobalCollectGatewayAccountInfo, $wgGlobalCollectGatewayURL;
+ $wgGlobalCollectGatewayEnabled = true;
+ $wgGlobalCollectGatewayAccountInfo = array( 'test' => array(
'MerchantID' => 'test' ) );
+ $wgGlobalCollectGatewayURL = 'https://ps.gcsip.nl/wdl/wdl';
+ global $wgDonationInterfacePriceFloor, $wgDonationInterfacePriceCeiling;
+ $wgDonationInterfacePriceFloor = 1;
+ $wgDonationInterfacePriceCeiling = 10000;
+
// TODO: SmashPig and DI initialization should be reused from a higher
// level and integrated with app config
$config = new Configuration();
--
To view, visit https://gerrit.wikimedia.org/r/301067
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic807a246913c5d336509779afddf4c752569c73d
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits