I'm still working in sandbox mode. I have the test Visa and MC numbers and expiration, but what about testing for address verification and CVC2 verification? What data should I send to those variables?
While we're on the subject, I couldn't find any real info on the variables to send in the Docs, but I found this on Google. Is this still correct (assuming that it ever was)?
$transaction = new AuthorizeNetAIM('ID', 'KEY');
$transaction->setSandbox(true);
$transaction->amount = '9.99';
$transaction->card_num = '4007000000027';
$transaction->exp_date = '10/16';
$transaction->first_name = $cardholder_first_name;
$transaction->last_name => $cardholder_last_name;
$transaction->card_code => $cvc2;
$transaction->address => $billing_address;
$transaction->city => $billing_city;
$transaction->state => $billing_state;
$transaction->zip => $billing_zip;
$response = $transaction->authorizeAndCapture();
Solved! Go to Solution.
09-05-2011 07:11 PM
Figured out why! when you set recurring_billing = true, it will not work.
11-08-2011 02:49 PM