PHP Classes

XPay: Process credit card payments with XPay service

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 931 All time: 3,843 This week: 560Up
Version License Categories
xpay 1.0Free for non-comm...Networking, E-Commerce


This class is meant to process credit card payments by connecting to a Java XPay transaction processing client provided by the SecureTrading company.

The XPay Java client must be running in the same machine as PHP or some other machine reachable via TCP connections.

The class establishes a connection with the XPay Java client and submits transaction authorization request in XPay XML request format. It passes a site reference and a certificate read from a given file.

Then it collects and processes the XML response to extract the transaction results.

Innovation Award
PHP Programming Innovation award nominee
May 2004
Number 4

Prize: One copy of the Maguma Workbench
E-commerce sites often use services of payment processing companies to charge their clients.

Some payment processing companies provide software components that can be used to establish connections with the company transaction servers to process the payments. Unfortunately some companies do not offer payment processing components in PHP.

This class provides a PHP solution to communicate with a payment processing component in Java. It works by establishing a local TCP connection with a Java server that forwards payment request in a simple XML format.

Manuel Lemos
Picture of James Dean
Name: James Dean <contact>
Classes: 1 package by
Country: United Kingdom
Age: 42
All time rank: 2454113 in United Kingdom
Week rank: 276 Up9 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.xpay.php Class class.xpay.php
Accessible without login Plain text file example.txt Example Example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,843
This week:560Up