Can anyone tell me where I might have gotten this setup? I can't find it anywhere in the authorize.net community. It's not part of the "php_aim/sample.php" or the SDK, but I got it from somewhere and it's the ONLY WAY I can process a transaction using AIM. I'd like to read up on this method, but can't find where it came from. Please help!
Thanks.
<?php
require('anet/AuthnetAIM.class.php');
try
{
$creditcard = $_REQUEST['ccnumber'];
$expiration = $_REQUEST['expdate'];
$total = $_REQUEST['amt_paid'];
$first = $_REQUEST['first_name'];
$last = $_REQUEST['last_name'];
$addr = $_REQUEST['address'];
$city = $_REQUEST['city'];
$state = $_REQUEST['state'];
$zip = $_REQUEST['zip'];
$member_id = $_REQUEST['member_id'];
$description = "Young Voices Uniform, Fees and Tuition";
$email = $_REQUEST['email'];
$payment = new AuthnetAIM('xxxxxxxxx', 'xxxxxxxxxxxxxx');
$payment->setTransaction($creditcard, $expiration, $total);
$payment->setParameter("x_card_num", $creditcard);
$payment->setParameter("x_exp_date", $expiration);
$payment->setParameter("x_amount", $total);
$payment->setParameter("x_first_name", $first);
$payment->setParameter("x_last_name", $last);
08-27-2013 06:56 PM