https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103411
Revision: 103411
Author: jpostlethwaite
Date: 2011-11-16 23:31:20 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
Adding eWallets to GlobalCollectGateway.
Modified Paths:
--------------
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
Modified:
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
===================================================================
---
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
2011-11-16 23:29:23 UTC (rev 103410)
+++
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
2011-11-16 23:31:20 UTC (rev 103411)
@@ -122,18 +122,6 @@
}
}
- elseif ( $payment_method == 'rtbt' ) {
-
- $this->adapter->do_transaction(
'INSERT_ORDERWITHPAYMENT' );
-
- $formAction =
$this->adapter->getTransactionDataFormAction();
-
- // Redirect to the bank
- if ( !empty( $formAction ) ) {
- return
$wgOut->redirect( $formAction );
- }
-
- }
elseif ( $payment_method == 'dd' ) {
$this->adapter->do_transaction(
'DO_BANKVALIDATION' );
@@ -148,7 +136,18 @@
// Attach the error
messages to the form
$this->adapter->setBankValidationErrors();
}
+ }
+ elseif ( $payment_method == 'ew' ) {
+
+ $this->adapter->do_transaction(
'INSERT_ORDERWITHPAYMENT' );
+
+ $formAction =
$this->adapter->getTransactionDataFormAction();
+ // Redirect to the bank
+ if ( !empty( $formAction ) ) {
+ return
$wgOut->redirect( $formAction );
+ }
+
}
elseif ( $payment_method == 'obt' ) {
@@ -160,6 +159,18 @@
}
}
+ elseif ( $payment_method == 'rtbt' ) {
+
+ $this->adapter->do_transaction(
'INSERT_ORDERWITHPAYMENT' );
+
+ $formAction =
$this->adapter->getTransactionDataFormAction();
+
+ // Redirect to the bank
+ if ( !empty( $formAction ) ) {
+ return
$wgOut->redirect( $formAction );
+ }
+
+ }
else {
$this->adapter->do_transaction(
'INSERT_ORDERWITHPAYMENT' );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs