DevelopersDocumentation Sample Code Integration Partners Sign-Up
Sample CodeHome » Developers » Sample code » Php 5 SOAP Webservices using the built-in PHP5 extensionPHP 5 now has included a built-in SOAP extension, eliminating the need to use 3rd party libraries in order to use SOAP Webservices. This extension is only available under PHP 5 and newer, and must be explicitly compiled into PHP in order to make use of it. Details about its requirements can be found here. Note: Using WSDL mode with PHP 5.0.1 or earlier will crash PHP. PHP 5.0.2 or above has been fixed. HTTPS POST methodIf you do not want to use the SOAP Webservices provided, you can instead, use the HTTPS POST method. This acts in a similar way to POST'ing a form from a web page, except that the result of the POST is read back into a variable, at which point it can be parsed for the relevant return information. Details on the return fields can be found in the Developer Documentation. Download ExamplesDownload: PHP Example code bundle (.zip) Note: As the SecurePayTech.com services (both SOAP and HTTPS POST) are accessed via SSL, you need to have the cURL extension installed, with SSL enabled, on your webhosting server in order to use PHP with the SecurePayTech.com payment processing services. Copyright ©2003-2007 SecurePayTech is a registered trademark of Digiweb NZ Ltd, |