public function doAction($methodName, $payload, $httpHeaders)
    {
        $this->setHttpHeader($httpHeaders);
        self::$soapClient->__setSoapHeaders($this->getAuthHeader());
        $response = self::$soapClient->$methodName($payload);

        return json_encode($response);
    }
public function doAction($methodName, $payload, $httpHeaders)
    {
        $this->setHttpHeader($httpHeaders);
        self::$soapClient->__setSoapHeaders($this->getAuthHeader());
        $response = self::$soapClient->$methodName($payload);

        return json_encode($response);
    }
public function doAction ( $ methodName , $ payload , $ httpHeaders ) { $ this -> setHttpHeader ( $ httpHeaders ) ; self :: $ soapClient -> __setSoapHeaders ( $ this -> getAuthHeader ( ) ) ; $ response = self :: $ soapClient -> $ methodName ( $ payload ) ; return json_encode ( $ response ) ; }
Execute SOAP method on the client

@param string $methodName the soap call method to execute
@param string $payload the payment transaction details

@return string
Execute SOAP method on the client