SecurePayTech Logo
Secure Payment Technologies

Developers

Documentation
View our comprehensive documentation on interfacing with SecurePayTech

Sample Code
Download examples of how to use the SecurePayTech system from your site

Integration Partners
See a list of our integration partners

Sign-Up
Click here to begin the sign up process

Bottom of box

Sample Code

Home » Developers » Sample code » Php 5

SOAP Webservices using the built-in PHP5 extension

PHP 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 method

If 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 Examples

Download: 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.