<body>
  <header id="header">
    <h1>Authorize.Net</h1>
  </header>

  <div id="content">
    <?php 
require_once 'Class.AuthorizeNet.php';
/** 
 * Create new Regular Transaction.
 */
$Auth = new AuthorizeNet('YOUR_LOGIN_ID', 'YOUR_TRANS_KEY');
// Merchant's unique API Login ID and Transaction Key
$Auth->setEnvironment('test');
// 'test' (default) or 'live'
$Auth->setTransactionType('AUTH_CAPTURE');
// AUTH_CAPTURE (default), AUTH_ONLY, CAPTURE_ONLY, CREDIT, PRIOR_AUTH_CAPTURE, VOID
$Auth->setPaymentMethod('CC');
// Payment Method - CC (default) or ECHECK
$Auth->setAmount('160.25', TRUE);
// Amount
$Auth->setCCNumber('378282246310005');
// Credit card number
$Auth->setCVV('4685');
// The three- or four-digit number on the back of a credit card
$Auth->setExpiration('11/12');
// Expiration date - MMYY, MM/YY, MM-YY, MMYYYY, MM/YYYY, MM-YYYY
$Auth->setPaymentDescription('New Sale on Product 232');
// Description of the Transaction.
$Auth->setCustomerFirstName('Richard');
// Customer First Name