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

Revision: 73416
Author:   awjrichards
Date:     2010-09-20 22:48:04 +0000 (Mon, 20 Sep 2010)

Log Message:
-----------
Updated messaging for declined transactions

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

Modified: 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
===================================================================
--- 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
   2010-09-20 21:56:49 UTC (rev 73415)
+++ 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
   2010-09-20 22:48:04 UTC (rev 73416)
@@ -507,7 +507,7 @@
        function fnPayflowGetResponseMsg( $resultCode, &$responseMsg ) {
                $responseMsg = wfMsg( 'payflowpro_gateway-response-default' );
                $errorCode = '0';
-
+               
                switch( $resultCode ) {
                        case '0':
                                $responseMsg = wfMsg( 
'payflowpro_gateway-response-0' );
@@ -619,7 +619,7 @@
                $declinedDefault = wfMsg( 'php-response-declined' );
 
                // display response message
-               $wgOut->addHTML( '<h3 class="response_message">' . 
$declinedDefault . $responseMsg . '</h3>' );
+               $wgOut->addHTML( '<h3 class="response_message">' . 
$declinedDefault . ' ' . $responseMsg . '</h3>' );
        }
 
        /**
@@ -634,7 +634,7 @@
                $declinedDefault = wfMsg( 'php-response-declined' );
 
                // display response message
-               $wgOut->addHTML( '<h3 class="response_message">' . 
$declinedDefault . $responseMsg . '</h3>' );
+               $wgOut->addHTML( '<h3 class="response_message">' . 
$declinedDefault . ' ' . $responseMsg . '</h3>' );
        }
        
        function fnPayflowDisplayPending( $data, $responseArray, $responseMsg ) 
{
@@ -648,6 +648,7 @@
                // include date
                $transaction['date'] = time();
                // send both the country as text and the three digit ISO code
+               $countries = countryCodes();
                $transaction['country_name'] = $countries[$data['country']];
                $transaction['country_code'] = $data['country'];
                // put all data into one array
@@ -799,7 +800,7 @@
         */
        public function fnGetFormData( $amount, $numAttempt, $token, $order_id 
) {
                global $wgPayflowGatewayTest, $wgRequest;
-               if ( $wgRequest->getText( 'email' ) && !$numAttempt && 
$wgPayflowGatewayTest ) { // if we're in testing mode, prepopulate the form
+               if ( !$numAttempt && $wgPayflowGatewayTest ) { // if we're in 
testing mode, prepopulate the form
                        // define arrays of cc's and cc #s for random selection
                        $cards = array( 'american' );
                        $card_nums = array(

Modified: 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.i18n.php
===================================================================
--- 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.i18n.php
   2010-09-20 21:56:49 UTC (rev 73415)
+++ 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.i18n.php
   2010-09-20 22:48:04 UTC (rev 73416)
@@ -80,7 +80,7 @@
        'payflowpro_gateway-response-125-2' => 'Your credit card could not be 
validated. Please verify that all provided information matches your credit card 
profile, or try a different card. You can also use one of our <a 
href="http://wikimediafoundation.org/wiki/Ways_to_Give/en";>other ways to 
give</a> or contact us at <a 
href="mailto:[email protected]";>[email protected]</a>. Thank you for your 
support.',
        'payflowpro_gateway-response-default' => 'There was an error processing 
your transaction.
 Please try again later.',
-       'php-response-declined' => 'Your transaction has been declined.',
+       'php-response-declined' => 'Your transaction could not be accepted.',
        'payflowpro_gateway-thankyou' => 'Thank you for your donation!',
        'payflowpro_gateway-post-transaction' => 'Transaction details',
        'payflowpro_gateway-submit-button' => 'Donate',



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

Reply via email to