Awight has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/183741

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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/41/183741/1

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: newchange
Gerrit-Change-Id: I592fb86033e43228bd869f38263925bacab20a7e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to