src/Payum/Paypal/Masspay/Nvp/Action/GetPayoutStatusAction.php
public function execute($request)
    {
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());
        
        if (false == $model['ACK']) {
            $request->markNew();

            return;
        }

        if (in_array($model['ACK'], [Api::ACK_SUCCESS, Api::ACK_SUCCESS_WITH_WARNING])) {
            $request->markPayedout();

            return;
        }

        if (in_array($model['ACK'], [Api::ACK_FAILURE, Api::ACK_FAILURE_WITH_WARNING])) {
            $request->markFailed();

            return;
        }

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

        $model = ArrayObject::ensureArrayObject($request->getModel());
        
        if (false == $model['ACK']) {
            $request->markNew();

            return;
        }

        if (in_array($model['ACK'], [Api::ACK_SUCCESS, Api::ACK_SUCCESS_WITH_WARNING])) {
            $request->markPayedout();

            return;
        }

        if (in_array($model['ACK'], [Api::ACK_FAILURE, Api::ACK_FAILURE_WITH_WARNING])) {
            $request->markFailed();

            return;
        }

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

@param GetStatusInterface $request