cancel
Showing results for 
Search instead for 
Did you mean: 

Working with test # in AIM sandbox, test address and CVC2?

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();

jwcarlton
Contributor
10 REPLIES 10

Figured out why! when you set recurring_billing = true, it will not work.