Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -113,11 +113,16 @@ |
114 | 114 | } elseif ( ( $errorCode == '5' ) ) { |
115 | 115 | $this->log( $msgPrefix . "Transaction pending.", LOG_DEBUG ); |
116 | 116 | $this->fnPayflowDisplayPending( $data, $responseMsg ); |
117 | | - } elseif ( ( $errorCode == '1000000' ) ) { //TODO: This is temporary until we can decide on the actual error codes WE control. |
| 117 | + } elseif ( strpos( $errorCode, 'internal' ) === 0 ) { |
118 | 118 | $this->log( $msgPrefix . "Transaction unsuccessful (communication failure).", LOG_DEBUG ); |
119 | | - $this->fnPayflowDisplayOtherResults( $responseMsg ); |
120 | 119 | $this->errors['retryMsg'] = $responseMsg; |
121 | 120 | $this->displayForm( $this->errors ); |
| 121 | + } elseif ( !empty( $errorCode ) ) { |
| 122 | + // This should not be hit. |
| 123 | + $this->log( $msgPrefix . "Transaction unsuccessful (unknown failure).", LOG_DEBUG ); |
| 124 | + $this->fnPayflowDisplayOtherResults( $responseMsg ); |
| 125 | + $this->errors['retryMsg'] = $errorCode; |
| 126 | + $this->displayForm( $this->errors ); |
122 | 127 | } |
123 | 128 | } |
124 | 129 | |