Script Category : PHP
Script Sub Category : E-Commerce
This code snippet creates an XML request with PHP, and uses cURL to post it to the Surepay Classic test server. Surepay's XML response is then parsed into an array, and the array is analyzed to determine if the credit card was authorized, declined or referred. You will have to alter this script for production use. There is also information about alternative payment gateway products.
|