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

        /** @var PayoutInterface $payout */
        $payout = $request->getSource();

        $details = ArrayObject::ensureArrayObject($payout->getDetails());
        $details['amount'] = $payout->getTotalAmount();
        $details['currency'] = $payout->getCurrencyCode();
        $details['description'] = $payout->getDescription();
        $details['recipient_email'] = $payout->getRecipientEmail();
        $details['recipient_id'] = $payout->getRecipientId();
        
        $details->defaults(array(
            Constants::FIELD_PAYOUT => true,
        ));

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

        /** @var PayoutInterface $payout */
        $payout = $request->getSource();

        $details = ArrayObject::ensureArrayObject($payout->getDetails());
        $details['amount'] = $payout->getTotalAmount();
        $details['currency'] = $payout->getCurrencyCode();
        $details['description'] = $payout->getDescription();
        $details['recipient_email'] = $payout->getRecipientEmail();
        $details['recipient_id'] = $payout->getRecipientId();
        
        $details->defaults(array(
            Constants::FIELD_PAYOUT => true,
        ));

        $request->setResult((array) $details);
    }
{@inheritDoc}

@param Convert $request