Source for file linkpoint.php
Documentation is available at linkpoint.php
require_once 'Payment/Process2.php';
// If you have a test store on the staging server uncomment these
// $options['host'] = 'staging.linkpt.net';
// $options['port'] = '1129';
// Path to your keyfile (the pem file given to you by linkpiont)
$options['keyfile'] = '/path/to/your/keyfile.pem';
$process = Payment_Process ::factory ('LinkPoint',$options);
$process->login = 'xxxxxxxxxx'; // Your linkpoint store ID
$process->password = '12345678'; // Your store's password
$card->invoiceNumber = 112345145;
$card->customerId = 1461264151;
$card->cardNumber = '411111111111111';
$card->expDate = '08/2008';
$process->setPayment ($card);
$result = $process->process ();
echo "---------------------- RESPONSE ------------------------\n";
echo $result->getMessage (). "\n";
echo $result->getCode (). "\n";
$validate = $result->validate ();
echo "---------------------- RESPONSE ------------------------\n";
Documentation generated on Mon, 11 Mar 2019 15:40:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|