Index: trunk/extensions/DonationInterface/gateway_common/GatewayForm.php |
— | — | @@ -574,9 +574,16 @@ |
575 | 575 | |
576 | 576 | $this->errors['general'] = ( !isset( $this->errors['general'] ) || empty( $this->errors['general'] ) ) ? array() : (array) $this->errors['general']; |
577 | 577 | |
| 578 | + $this->errors['retryMsg'] = ( !isset( $this->errors['retryMsg'] ) || empty( $this->errors['retryMsg'] ) ) ? array() : (array) $this->errors['retryMsg']; |
| 579 | + |
578 | 580 | foreach ( $this->adapter->getTransactionErrors() as $code => $message ) { |
579 | 581 | |
580 | | - $this->errors['general'][ $code ] = $message; |
| 582 | + if ( strpos( $code, 'internal' ) === 0 ) { |
| 583 | + $this->errors['retryMsg'][ $code ] = $message; |
| 584 | + } |
| 585 | + else { |
| 586 | + $this->errors['general'][ $code ] = $message; |
| 587 | + } |
581 | 588 | } |
582 | 589 | |
583 | 590 | return $this->displayForm( $this->errors ); |