Index: trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php |
— | — | @@ -138,10 +138,16 @@ |
139 | 139 | |
140 | 140 | $this->adapter->do_transaction( 'DO_BANKVALIDATION' ); |
141 | 141 | |
142 | | - if ( $this->adapter->getTransactionStatus() ) { |
| 142 | + // Check to see if validations were successful, if so, proceed with order. |
| 143 | + if ( in_array( $this->adapter->getTransactionWMFStatus(), $this->adapter->getGoToThankYouOn() ) ) { |
143 | 144 | |
144 | 145 | $this->adapter->do_transaction( 'INSERT_ORDERWITHPAYMENT' ); |
145 | 146 | } |
| 147 | + else { |
| 148 | + |
| 149 | + // Attach the error messages to the form |
| 150 | + $this->adapter->setBankValidationErrors(); |
| 151 | + } |
146 | 152 | |
147 | 153 | } |
148 | 154 | else { |