src/Payum/AuthorizeNet/Aim/Action/StatusAction.php
public function execute($request)
    {
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());

        if (null === $model['response_code']) {
            $request->markNew();

            return;
        }

        if (\AuthorizeNetAIM_Response::APPROVED == $model['response_code']) {
            $request->markCaptured();

            return;
        }

        if (\AuthorizeNetAIM_Response::DECLINED == $model['response_code']) {
            $request->markCanceled();

            return;
        }

        if (\AuthorizeNetAIM_Response::ERROR == $model['response_code']) {
            $request->markFailed();

            return;
        }

        if (\AuthorizeNetAIM_Response::HELD == $model['response_code']) {
            $request->markPending();

            return;
        }

        $request->markUnknown();
    }
public function execute($request)
    {
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());

        if (null === $model['response_code']) {
            $request->markNew();

            return;
        }

        if (\AuthorizeNetAIM_Response::APPROVED == $model['response_code']) {
            $request->markCaptured();

            return;
        }

        if (\AuthorizeNetAIM_Response::DECLINED == $model['response_code']) {
            $request->markCanceled();

            return;
        }

        if (\AuthorizeNetAIM_Response::ERROR == $model['response_code']) {
            $request->markFailed();

            return;
        }

        if (\AuthorizeNetAIM_Response::HELD == $model['response_code']) {
            $request->markPending();

            return;
        }

        $request->markUnknown();
    }
{@inheritDoc}

@param GetStatusInterface $request