Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -674,6 +674,8 @@ |
675 | 675 | $this->fnPayflowDisplayDeclinedResults( $responseMsg ); |
676 | 676 | } elseif( ( $errorCode == '4' ) ) { |
677 | 677 | $this->fnPayflowDisplayOtherResults( $responseMsg ); |
| 678 | + } elseif( ( $errorCode == '5' ) ) { |
| 679 | + $this->fnPayflowDisplayPending( $responseMsg ); |
678 | 680 | } |
679 | 681 | |
680 | 682 | }// end display results |
— | — | @@ -696,7 +698,7 @@ |
697 | 699 | break; |
698 | 700 | case '126': |
699 | 701 | $responseMsg = wfMsg( 'payflowpro_gateway-response-126' ); |
700 | | - $errorCode = '1'; |
| 702 | + $errorCode = '5'; |
701 | 703 | break; |
702 | 704 | case '12': |
703 | 705 | $responseMsg = wfMsg( 'payflowpro_gateway-response-12' ); |
— | — | @@ -822,6 +824,13 @@ |
823 | 825 | // display response message |
824 | 826 | $wgOut->addHTML( '<h3 class="response_message">' . $declinedDefault . $responseMsg . '</h3>' ); |
825 | 827 | } |
| 828 | + |
| 829 | + function fnPayflowDisplayPending( $responseMsg ) { |
| 830 | + global $wgOut; |
| 831 | + |
| 832 | + // display response message |
| 833 | + $wgOut->addHTML( '<h3 class="response_message">' . $responseMsg . '</h3>' ); |
| 834 | + } |
826 | 835 | |
827 | 836 | function fnPayflowSaveContributionTracking( &$data ) { |
828 | 837 | $data['optout'] = ($data['optout'] == "1") ? '0' : '1'; |
— | — | @@ -854,7 +863,7 @@ |
855 | 864 | |
856 | 865 | // Store the contribution data |
857 | 866 | if ($db->insert( 'contribution_tracking', $tracked_contribution ) ) { |
858 | | - $data['contribution_tracking_id'] = $db->insertId(); |
| 867 | + // $data['contribution_tracking_id'] = $db->insertId(); |
859 | 868 | return true; |
860 | 869 | } else { return false; } |
861 | 870 | |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.i18n.php |
— | — | @@ -66,6 +66,7 @@ |
67 | 67 | 'payflowpro_gateway-response-0' => 'Your transaction has been approved. |
68 | 68 | Thank you for your donation!', |
69 | 69 | 'payflowpro_gateway-response-126' => 'Your transaction is pending approval.', |
| 70 | + 'payflowpro_gateway-response-126-2' => 'Some of the information you provided did not match your credit card profile. For your own security, your donation is currently under review, and we will notify you through the provided e-mail address if we cannot finalize your donation. Please e-mail <a href="mailto:donate@wikimedia.org">donate@wikimedia.org</a> if you have any questions. Thank you!', |
70 | 71 | 'payflowpro_gateway-response-12' => 'Please contact your credit card company for further information.', |
71 | 72 | 'payflowpro_gateway-response-13' => 'Your transaction requires voice authorization. |
72 | 73 | Please contact us to continue your transaction.', // This will not apply to Wikimedia accounts |
— | — | @@ -78,6 +79,7 @@ |
79 | 80 | 'payflowpro_gateway-response-default' => 'There was an error processing your transaction. |
80 | 81 | Please try again later.', |
81 | 82 | 'php-response-declined' => 'Your transaction has been declined.', |
| 83 | + 'payflowpro_gateway-thankyou' => 'Thank you for your donation!', |
82 | 84 | 'payflowpro_gateway-post-transaction' => 'Transaction details', |
83 | 85 | 'payflowpro_gateway-submit-button' => 'Donate', |
84 | 86 | 'payflowpro_gateway-cvv-explain' => '<h4>What is CVV?</h4> |