http://www.mediawiki.org/wiki/Special:Code/MediaWiki/75661

Revision: 75661
Author:   awjrichards
Date:     2010-10-29 18:45:32 +0000 (Fri, 29 Oct 2010)
Log Message:
-----------
Put paypal redirect call after token check due to unexpected behavior of moving 
it outside of the token check logic

Modified Paths:
--------------
    
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php

Modified: 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
===================================================================
--- 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
   2010-10-29 18:42:55 UTC (rev 75660)
+++ 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
   2010-10-29 18:45:32 UTC (rev 75661)
@@ -135,20 +135,20 @@
                // Populate form data
                $data = $this->fnGetFormData( $amount, $numAttempt, $token, 
$payflow_data['order_id'] );
                
-               /**
-                *  handle PayPal redirection 
-                *  
-                *  if paypal redirection is enabled 
($wgPayflowGatewayPaypalURL must be defined)
-                *  and the PaypalRedirect form value must be true
-                */
-               if ( $wgRequest->getBool( 'PaypalRedirect' )) {
-                       $this->paypalRedirect( $data );
-                       return;
-               }
-               
                // dispatch forms/handling
                if( $token_match ) {
-                       
+               
+                       /**
+                        *  handle PayPal redirection 
+                        *  
+                        *  if paypal redirection is enabled 
($wgPayflowGatewayPaypalURL must be defined)
+                        *  and the PaypalRedirect form value must be true
+                        */
+                       if ( $wgRequest->getBool( 'PaypalRedirect' )) {
+                               $this->paypalRedirect( $data );
+                               return;
+                       }       
+                                       
                        if( $data['payment_method'] == 'processed' ) {
                                //increase the count of attempts
                                ++$data['numAttempt'];


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to