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

        /** @var PaymentInterface $payment */
        $payment = $request->getSource();

        $details = ArrayObject::ensureArrayObject($payment->getDetails());
        $details['price'] = $payment->getTotalAmount();
        $details['priceArgList'] = '';
        $details['vat'] = 0;
        $details['currency'] = $payment->getCurrencyCode();
        $details['orderId'] = $payment->getNumber();
        $details['productNumber'] = 'n\a';
        $details['purchaseOperation'] = OrderApi::PURCHASEOPERATION_SALE;
        $details['view'] = OrderApi::VIEW_CREDITCARD;
        $details['description'] = $payment->getDescription();
        $details['clientIdentifier'] = '';
        $details['additionalValues'] = '';
        $details['agreementRef'] = '';
        $details['clientLanguage'] = isset($details['clientLanguage']) ? $details['clientLanguage'] : 'en-US';
        $details['autoPay'] = false;

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

        /** @var PaymentInterface $payment */
        $payment = $request->getSource();

        $details = ArrayObject::ensureArrayObject($payment->getDetails());
        $details['price'] = $payment->getTotalAmount();
        $details['priceArgList'] = '';
        $details['vat'] = 0;
        $details['currency'] = $payment->getCurrencyCode();
        $details['orderId'] = $payment->getNumber();
        $details['productNumber'] = 'n\a';
        $details['purchaseOperation'] = OrderApi::PURCHASEOPERATION_SALE;
        $details['view'] = OrderApi::VIEW_CREDITCARD;
        $details['description'] = $payment->getDescription();
        $details['clientIdentifier'] = '';
        $details['additionalValues'] = '';
        $details['agreementRef'] = '';
        $details['clientLanguage'] = isset($details['clientLanguage']) ? $details['clientLanguage'] : 'en-US';
        $details['autoPay'] = false;

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

@param Convert $request