core/oxpspaymorrowresponsehandler.php
public function getErrorCodeFromResponseData( array $aResponseData )
    {
        foreach ( $aResponseData as $sKey => $iValue ) {
            if ( preg_match( '/error_(\d+)_code/', $sKey ) ) {
                return (int) $iValue;
            }
        }

        return 999; // UNEXPECTED_ERROR
    }
public function getErrorCodeFromResponseData( array $aResponseData )
    {
        foreach ( $aResponseData as $sKey => $iValue ) {
            if ( preg_match( '/error_(\d+)_code/', $sKey ) ) {
                return (int) $iValue;
            }
        }

        return 999; // UNEXPECTED_ERROR
    }
public function getErrorCodeFromResponseData ( array $ aResponseData ) { foreach ( $ aResponseData as $ sKey => $ iValue ) { if ( preg_match ( '/error_(\d+)_code/' , $ sKey ) ) { return ( int ) $ iValue ; } } return 999 ; // UNEXPECTED_ERROR }
Returns first match of client error code.

@param array $aResponseData

@return integer
Returns first match of client error code .