- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Currently im working onto AIM method. I tried to pass on only the required onto their test environment with live mode (https://test.authorize.net/gateway/transact.dll).
Keep having this error eventhough everything is accordingly. These are my merchant interface sandbox settings:
version:3.1
testmode: live
directresponse:yes
delimited character: comma
password required for all transaction: yes
API login id: yes(mine)
transaction key: yes(mine)
WebLink: No
var x_login = 'my API id',
x_tran_key = 'my transaction key id',
x_response_format = '2',
x_version = '3.1',
x_type = 'AUTH_CAPTURE',
x_market_type = '0',//needs
x_relay_response='FALSE',
x_delim_data = 'TRUE',
x_amount = '50.00',
x_card_num = '4111111111111111',
x_exp_date = '1220',
x_description = 'Testing',
x_first_name = 'Ellen',
x_last_name = 'Johnson',
x_company = 'Souveniropolis',
x_address = '14 Main Street',
x_city = 'Pecan Springs',
x_state = 'TX',
x_zip = '44628',
x_country = 'USA',
x_phone = '0124859494',
x_fax = '043516273',
x_email = 'JohnTravol@gmail.com',
x_ship_to_first_name = 'China',
x_ship_to_last_name = 'Bayles',
x_ship_to_company = 'Thyme for Tea',
x_ship_to_address = '12 Main Street',
x_ship_to_city = 'Pecan Springs',
x_ship_to_state = 'TX',
x_ship_to_zip = '44628',
x_ship_to_country = 'USA';
$.ajax({
type: "POST",
url: 'https://test.authorize.net/gateway/transact.dll?x_login='+x_login+'&x_tran_key='+x_tran_key+'&x_resp...'
+x_response_format+'&x_version='+x_version+'&x_type='+x_type+'&x_relay_response='+x_relay_response+'&x_market_type='
+x_market_type+'&x_delim_data='+x_delim_data+'&x_amount='+x_amount+'&x_card_num='+x_card_num+'&x_exp_date='
+x_exp_date+'&x_description='+x_description+'&x_first_name='+x_first_name+'&x_last_name='+x_last_name+'&x_company='
+x_company+'&x_address='+x_address+'&x_city='+x_city+'&x_state='+x_state+'&x_zip='+x_zip+'&x_country='+x_country+'&x_phone='
+x_phone+'&x_fax='+x_fax+'&x_email='+x_email+'&x_ship_to_first_name='+x_ship_to_first_name+'&x_ship_to_last_name='
+x_ship_to_last_name+'&x_ship_to_company='+x_ship_to_company+'&x_ship_to_address='+x_ship_to_address+'&x_ship_to_city='
+x_ship_to_city+'&x_ship_to_state='+x_ship_to_state+'&x_ship_to_zip='+x_ship_to_zip+'&x_ship_to_country='+x_ship_to_country,
success: function (response) {
console.log(response);
},
error: function () {
}
});
Im sending through ajax calling. Is there any other setting that i might have missed?Or there is somethign wrong with my field value? Any other guidance would be appreciated.
Regards.
Solved! Go to Solution.
10-12-2016 06:46 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aight,
It is solved,like it or not i have to regenerate the transactionkey again and its work fine.
Regards.
10-12-2016 08:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3,1,103,This transaction cannot be accepted.,,P,0,,,50.00,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,8B2EAEA6A5B812F667258585EE5C66BF,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
This are the error example, sorry for not pointing it out whats the error
the url link: 'https://test.authorize.net/gateway/transact.dll?x_login='+x_login+'&x_tran_key='+x_tran_key+'&x_resp...'
+x_response_format+'&x_version='+x_version+'&x_type='+x_type+'&x_relay_response='+x_relay_response+'&x_market_type='
+x_market_type+'&x_delim_data='+x_delim_data+'&x_amount='+x_amount+'&x_card_num='+x_card_num+'&x_exp_date='
+x_exp_date+'&x_description='+x_description+'&x_first_name='+x_first_name+'&x_last_name='+x_last_name+'&x_company='
+x_company+'&x_address='+x_address+'&x_city='+x_city+'&x_state='+x_state+'&x_zip='+x_zip+'&x_country='+x_country+'&x_phone='
+x_phone+'&x_fax='+x_fax+'&x_email='+x_email+'&x_ship_to_first_name='+x_ship_to_first_name+'&x_ship_to_last_name='
+x_ship_to_last_name+'&x_ship_to_company='+x_ship_to_company+'&x_ship_to_address='+x_ship_to_address+'&x_ship_to_city='
+x_ship_to_city+'&x_ship_to_state='+x_ship_to_state+'&x_ship_to_zip='+x_ship_to_zip+'&x_ship_to_country='+x_ship_to_country
Regards.
10-12-2016 06:59 PM - edited 10-12-2016 07:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aight,
It is solved,like it or not i have to regenerate the transactionkey again and its work fine.
Regards.
10-12-2016 08:18 PM