PX : code

cyberlib example by Timothy Whitfield
Download this code


<?
require "cyberlib.phtml";

$transaction=new payment;

$transaction->type="mauthonly";
$transaction->card_no="4111111111111111";
$transaction->card_exp="9%2f99";
$transaction->name="Sherlock+Holmes";
$transaction->street="221B+Baker+Street";
$transaction->city="London";
$transaction->state="England";
$transaction->zip="NW1+6XE";
$transaction->country="UK";

$transaction->merchant_secret="secret-test-fdc";

$response=$transaction->send(time(),"0.24");

echo $response["MStatus"];
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.