コード例 #1
0
// Allow Authorize to send it's receipt to the Customer
$Auth->setShippingFirstName('Richard');
// Shipping First Name
$Auth->setShippingLastName('Castera');
// Shipping Last Name
$Auth->setShippingCompany('NiceEmails');
// Shipping Company
$Auth->setShippingAddress('589 8th Ave. Suite 10');
// Shipping Address
$Auth->setShippingCity('New York');
// Shipping City
$Auth->setShippingState('NY');
// Shipping State
$Auth->setShippingZip('10018');
// Shipping Zip
$Auth->setShippingCountry('United States');
// Shipping Country.
if ($Auth->processTransaction()) {
    // Process the transaction by sending the values to Authorize.
    echo 'Transaction Processed Successfully!';
} else {
    echo 'Transaction could not be processed at this time.';
}
echo '<h2>Name Value Pair String:</h2>';
echo '<pre>';
print_r($Auth->debugNVP('array'));
// Output the Name Value Pairs that gets sent to Authorize. Valid values are 'array' or blank for nvp string.
echo '</pre>';
echo '<h2>Response From Authorize:</h2>';
echo '<pre>';
print_r($Auth->getResponse());