Awight has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/344545 )
Change subject: Patch orphan rectifier to drop non-cc records ...................................................................... Patch orphan rectifier to drop non-cc records Bug: T161160 Change-Id: I2ff9a064d2f6c38b05441f1efa1ca8bdd781fc24 --- M globalcollect_gateway/GlobalCollectOrphanRectifier.php 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface refs/changes/45/344545/1 diff --git a/globalcollect_gateway/GlobalCollectOrphanRectifier.php b/globalcollect_gateway/GlobalCollectOrphanRectifier.php index ac404b1..6d44465 100644 --- a/globalcollect_gateway/GlobalCollectOrphanRectifier.php +++ b/globalcollect_gateway/GlobalCollectOrphanRectifier.php @@ -160,6 +160,13 @@ * @return boolean True if the orphan has been rectified, false if not. */ protected function rectifyOrphan( $normalized ){ + if ( $normalized['payment_method'] !== 'cc' ) { + // Skip other payment methods which shouldn't be in the pending + // queue anyway. See https://phabricator.wikimedia.org/T161160 + $this->logger->info( "Skipping non-credit card pending record." ); + return false; + } + $this->logger->info( "Rectifying orphan: {$normalized['order_id']}" ); $is_rectified = false; -- To view, visit https://gerrit.wikimedia.org/r/344545 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2ff9a064d2f6c38b05441f1efa1ca8bdd781fc24 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Awight <awi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits