PHP Classes

File: example.txt

Recommend this page to a friend!
  Classes of James Dean   XPay   example.txt   Download  
File: example.txt
Role: Example script
Content type: text/plain
Description: Example
Class: XPay
Process credit card payments with XPay service
Author: By
Last change:
Date: 18 years ago
Size: 850 bytes


Class file image Download


$operation = array( "amount"=>(1000);
$customerinfo = array( "nameprefix"=>"Mr.",
            "street"=>("123 Astreet St"),

$paymentmethod = array( "type"=>"VISA",
$order = array( "orderreference"=>"Order001",

$xpay = new Xpay($sitereference,$certlocation,$port = 5000,$host = "")
$result = $xpay->auth($operation,$customerinfo,$paymentmethod,$order);

if($result["Result"] == 1){
    print "The transaction was successful";