https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102054

Revision: 102054
Author:   jpostlethwaite
Date:     2011-11-04 21:45:40 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Added payment_method and payment_submethod as arguments for the Thank you page 
links and redirects.

Modified Paths:
--------------
    trunk/extensions/DonationInterface/gateway_common/GatewayForm.php
    
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php

Modified: trunk/extensions/DonationInterface/gateway_common/GatewayForm.php
===================================================================
--- trunk/extensions/DonationInterface/gateway_common/GatewayForm.php   
2011-11-04 21:40:17 UTC (rev 102053)
+++ trunk/extensions/DonationInterface/gateway_common/GatewayForm.php   
2011-11-04 21:45:40 UTC (rev 102054)
@@ -536,7 +536,10 @@
                        $thankyoupage = $this->adapter->getGlobal( 
'ThankYouPage' );
        
                        if ( $thankyoupage ) {
-                               return $wgOut->redirect( $thankyoupage . '/' . 
$this->adapter->getTransactionDataLanguage() );
+                               
+                               $queryString = '?payment_method=' . 
$this->adapter->getPaymentMethod() . '&payment_submethod=' . 
$this->adapter->getPaymentSubmethod();
+                               
+                               return $wgOut->redirect( $thankyoupage . '/' . 
$this->adapter->getTransactionDataLanguage() . $queryString );
                        }
                }
                

Modified: 
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
===================================================================
--- 
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
     2011-11-04 21:40:17 UTC (rev 102053)
+++ 
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
     2011-11-04 21:45:40 UTC (rev 102054)
@@ -258,7 +258,9 @@
 
                $return .= Xml::closeElement( 'table' ); // close $id . '_table'
 
-               $url = $this->adapter->getGlobal( 'ThankYouPage' ) . '/' . 
$this->adapter->getTransactionDataLanguage();
+               $queryString = '?payment_method=' . 
$this->adapter->getPaymentMethod() . '&payment_submethod=' . 
$this->adapter->getPaymentSubmethod();
+
+               $url = $this->adapter->getGlobal( 'ThankYouPage' ) . '/' . 
$this->adapter->getTransactionDataLanguage() . $queryString;
                
                $link = Xml::tags( 'a', array( 'href' => $url ), wfMsg( 
'donate_interface-bt-finished' ) );
                


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

Reply via email to