$client = new nusoap_client(self::PAY_URI . '?WSDL', 'wsdl',
'', '', '', '');
$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;
$client->xml_encoding = 'utf-8';
$header = "<sourceDeviceCode>" . self::SOURCE_DEVICE_CODE . "</sourceDeviceCode>" .
"<timeStamp>" . $timestamp . "</timeStamp>" .
"<authenticatorSource>" . $this->sha(self::SOURCE_DEVICE_CODE . self ::APP_SECRET . $timestamp) . "</authenticatorSource>" .
"<version>1.0</version>";
$client -> setHeaders($header);