src/Payum/Payex/Api/BaseApi.php
protected function normalizeStatusFields(array $inputResult)
    {
        $result = $inputResult;

        unset($result['status']);
        if (array_key_exists('status', $inputResult) && is_array($inputResult['status'])) {
            $statuses = $inputResult['status'];

            //agreement.autoPay seems has a bug. it returns two sub arrays inside status. Lets take the first as status.
            if (is_array(current($statuses))) {
                $statuses = array_shift($statuses);
            }

            foreach ($statuses as $name => $value) {
                if ('description' == $name) {
                    $name = 'errorDescription';
                }

                $result[$name] = $value;
            }
        }

        return $result;
    }
protected function normalizeStatusFields(array $inputResult)
    {
        $result = $inputResult;

        unset($result['status']);
        if (array_key_exists('status', $inputResult) && is_array($inputResult['status'])) {
            $statuses = $inputResult['status'];

            //agreement.autoPay seems has a bug. it returns two sub arrays inside status. Lets take the first as status.
            if (is_array(current($statuses))) {
                $statuses = array_shift($statuses);
            }

            foreach ($statuses as $name => $value) {
                if ('description' == $name) {
                    $name = 'errorDescription';
                }

                $result[$name] = $value;
            }
        }

        return $result;
    }
@param array $inputResult

@return array