Sha256: 41abd9fc812b0112bbcb867231702b1c68fd976c0e935e28e74af665eef3c0fa

Contents?: true

Size: 952 Bytes

Versions: 14

Compression:

Stored size: 952 Bytes

Contents

<pre>
	<?php
	
		$key = $_GET['key'];
		
		//$url = "https://secure.docdatapayments.com/ps/services/paymentservice/1_1?wsdl"; // live url 
		$url = "https://test.docdatapayments.com/ps/services/paymentservice/1_1?wsdl";
		
		$client = new SoapClient( $url );
		
		//var_dump($client->__getFunctions());
			
		$parameters = array();
		
		$parameters['version'] = "1.1";
		
		//	merchant
		//$parameters['merchant']['name'] = $_POST['merchantname'];
		//$parameters['merchant']['password'] = $_POST['merchantpassword'];
		$parameters['merchant']['name'] = 'phptest';
		$parameters['merchant']['password'] = 'xxx';
			
		$parameters['paymentOrderKey'] = $key;
		
		//	dorequest	
		echo "<h2>Status</h2>";
		
		$response = $client->status( $parameters );
			
		if( isset( $response->statusSuccess->success ) ) {
			print_r($response->statusSuccess->report);
		} else {
			print_r( $response->statusError );
		}
	?>
</pre>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
docdata-0.2.3 php-example/return.php
docdata-0.2.2 php-example/return.php
docdata-0.2.1 php-example/return.php
docdata-0.2.0 php-example/return.php
docdata-0.1.8 php-example/return.php
docdata-0.1.7 php-example/return.php
docdata-0.1.6 php-example/return.php
docdata-0.1.5 php-example/return.php
docdata-0.1.4 php-example/return.php
docdata-0.1.2 php-example/return.php
docdata-0.1.1 php-example/return.php
docdata-0.1.0 php-example/return.php
docdata-0.0.5 php-example/return.php
docdata-0.0.2 php-example/return.php