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

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

        $details = ArrayObject::ensureArrayObject($payment->getDetails());

        if (isset($details[Constants::FIELD_STATUS])) {
            return;
        }

        $details[Constants::FIELD_STATUS] = false;
        $details['amount'] = $payment->getAmount();
        $details['currency'] = $payment->getCurrency()->getCode();

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

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

        $details = ArrayObject::ensureArrayObject($payment->getDetails());

        if (isset($details[Constants::FIELD_STATUS])) {
            return;
        }

        $details[Constants::FIELD_STATUS] = false;
        $details['amount'] = $payment->getAmount();
        $details['currency'] = $payment->getCurrency()->getCode();

        $request->setResult((array)$details);
    }
public function execute ( $ request ) { RequestNotSupportedException :: assertSupports ( $ this , $ request ) ; /** @var PaymentInterface $payment */ $ payment = $ request -> getSource ( ) ; $ details = ArrayObject :: ensureArrayObject ( $ payment -> getDetails ( ) ) ; if ( isset ( $ details [ Constants :: FIELD_STATUS ] ) ) { return ; } $ details [ Constants :: FIELD_STATUS ] = false ; $ details [ 'amount' ] = $ payment -> getAmount ( ) ; $ details [ 'currency' ] = $ payment -> getCurrency ( ) -> getCode ( ) ; $ request -> setResult ( ( array ) $ details ) ; }
{@inheritDoc}

@param Convert $request
{ @inheritDoc }