コード例 #1
0
// 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());
// Get the response.
echo '</pre>';
unset($Auth);
// Destroy the Object.
?>
    
  </div>

  <footer id="footer">