v2.5.2
Giriş yap

syntax error, unexpected '"' Hatası ile karşılaşıyorum

kamilguney
576 defa görüntülendi

Merhaba
Bir kurum için hopi ile ödeme sistemi entegrasyonu yapmaya çalışıyorum.
Örnek kod ve karşılaştığım hatayı aşağıda belirttim saatlerdir inceliyorum bir syntax hatası göremedim.

PHP Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)


    $hopi_birdID = 123321;
	$siparisNo = 111111111;
	$hopi_tarih = date(DATE_ATOM, $tarih);
	$hopiToplamFiyat =110;


    ini_set("soap.wsdl_cache_enabled", "0");
		$wsdl_post = array(
			'Username' => 'username',
			'password' => '123456'
		);
		$xml = <<<EOT
					<wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
						<wsse:UsernameToken>
							<wsse:Username>username_pos</wsse:Username>
							<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">123456</wsse:Password>
						</wsse:UsernameToken>
					</wsse:Security>
		EOT;
		
		try {

			$soapClient = new SoapClient("https://bird.staging.kartaca.com/pos/soap/pos.wsdl");
			$header = new SoapHeader('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'Security', new SoapVar($xml, XSD_ANYXML), true);
			$soapClient->__setSoapHeaders($header);
			$siparis_info = array(
				'storeCode' => 'storeCode',
				'birdId' => $hopi_birdID,
				'dateTime' => $hopi_tarih,
				'transactionId' => $siparisNo,
				'paymentDetails' => $hopiToplamFiyat
			);	
			$text = $soapClient->NotifyCheckout($siparis_info);
		} catch (Exception $exc) { // Hata olusursa yakala
			echo $exc->getMessage();		
		}

Hatayı aşağıda belirtiğim alandan veriyor.

$siparis_info = array(
				'storeCode' => 'storeCode',
				'birdId' => $hopi_birdID,
				'dateTime' => $hopi_tarih,
				'transactionId' => $siparisNo,
				'paymentDetails' => $hopiToplamFiyat
			);	
			$text = $soapClient->NotifyCheckout($siparis_info);
Cevap yaz
Cevaplar (0)
Henüz kimse cevap yazmadı. İlk cevap yazan sen ol!