I am using Authorize.net payment module(AIM) with my cakephp framework. Payment functionality is working fine. Now i need to do a REFUND Functionality with my framework. I checked their Api's but i could not get any thing. According to their API guide the following parameters are needed If I passed they asking exp date too. In my database we are storing only last 4 digits of CC. any way i try to pass all the 16 digits but the response not proper. Just i need a sample PHP code for Authorize.net Refund.
x_type=CREDIT
x_trans_id=Transaction ID here
x_card_num=Full credit card number or last four digits only here
I am passing following parameters
"x_type" => 'CREDIT',
"x_trans_id" => $x_trans_id,
"x_card_num" => '4111111111111111',
"x_exp_date" => '' ,
"x_amount" => $x_amount,
'x_test_request' => TRUE
Now I getting the following error message :
(TESTMODE) A valid referenced transaction ID is required.
x_exp_datekey but leave it blank. - jeremyharris