public function refund($apiContext = null, $soapCall = null)
    {
        $methodName = 'doTransaction';
        ArgumentValidator::validate($this->return->payUReference, "payUReference");
        ArgumentValidator::validate($this->return->merchantReference, 'merchantReference');
        $payLoad = $this->request->parseReserveResource($this);

        $json = self::executeCall(
            $methodName,
            $payLoad,
            null,
            $apiContext,
            $soapCall
        );

        $ret = new Refund();
        $ret->fromJson($json);
        return $ret;
    }
public function refund($apiContext = null, $soapCall = null)
    {
        $methodName = 'doTransaction';
        ArgumentValidator::validate($this->return->payUReference, "payUReference");
        ArgumentValidator::validate($this->return->merchantReference, 'merchantReference');
        $payLoad = $this->request->parseReserveResource($this);

        $json = self::executeCall(
            $methodName,
            $payLoad,
            null,
            $apiContext,
            $soapCall
        );

        $ret = new Refund();
        $ret->fromJson($json);
        return $ret;
    }
public function refund ( $ apiContext = null , $ soapCall = null ) { $ methodName = 'doTransaction' ; ArgumentValidator :: validate ( $ this -> return -> payUReference , "payUReference" ) ; ArgumentValidator :: validate ( $ this -> return -> merchantReference , 'merchantReference' ) ; $ payLoad = $ this -> request -> parseReserveResource ( $ this ) ; $ json = self :: executeCall ( $ methodName , $ payLoad , null , $ apiContext , $ soapCall ) ; $ ret = new Refund ( ) ; $ ret -> fromJson ( $ json ) ; return $ ret ; }
Refund a captured payment.
In addition, include an amount object in the body of the request JSON.

@param ApiContext $apiContext is the APIContext for this call.
It can be used to pass dynamic configuration and credentials.
@param SoapCall $soapCall is the SOAP Call Service that is used to make calls

@return ResourceModel
Refund a captured payment . In addition include an amount object in the body of the request JSON .