jenkins-bot has submitted this change and it was merged.
Change subject: remove and comment unused code
......................................................................
remove and comment unused code
Change-Id: I592fb86033e43228bd869f38263925bacab20a7e
---
M globalcollect_gateway/globalcollect_gateway.body.php
1 file changed, 2 insertions(+), 11 deletions(-)
Approvals:
Ejegg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/globalcollect_gateway/globalcollect_gateway.body.php
b/globalcollect_gateway/globalcollect_gateway.body.php
index 6ec890f..552ca60 100644
--- a/globalcollect_gateway/globalcollect_gateway.body.php
+++ b/globalcollect_gateway/globalcollect_gateway.body.php
@@ -40,17 +40,6 @@
$this->setHeaders();
- /**
- * handle PayPal redirection
- *
- * if paypal redirection is enabled
($wgPayflowProGatewayPaypalURL must be defined)
- * and the PaypalRedirect form value must be true
- */
- if ( $this->getRequest()->getText( 'PaypalRedirect', 0 ) ) {
- $this->paypalRedirect();
- return;
- }
-
// dispatch forms/handling
if ( $this->adapter->checkTokens() ) {
if ( $this->adapter->posted ) {
@@ -78,6 +67,8 @@
switch ( $payment_method ){
case 'cc':
+ // FIXME: we don't
actually use this code path, it's done from gc.cc.js instead.
+
$this->adapter->do_transaction( 'INSERT_ORDERWITHPAYMENT' );
// Display an iframe
for credit cards
--
To view, visit https://gerrit.wikimedia.org/r/183741
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I592fb86033e43228bd869f38263925bacab20a7e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: Ssmith <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits