cancel
Showing results for 
Search instead for 
Did you mean: 

Perl and AIM

I am quite new at this have been struggling with something for a few hours now.

 

I am using the sample code for AIM perl with all the standard settings shown below.

( except for the login and trans key which I replaced)

 

I keep getting the 87 error no matter how I change the settings in my account.

 

Any help would be appreciated!!!!

 

 

my $post_values= 

{# the API Login ID and Transaction Key must be replaced with valid values

"x_login"=> "xxxxxxxxxx",

"x_tran_key"=> "xxxxxxxxxxxxxxxxxxxx",

"x_version"=> "3.1","x_delim_data"=> "TRUE",

"x_delim_char"=> "|","x_relay_response"=> "FALSE",
"x_type"=> "AUTH_CAPTURE",

"x_method"=> "CC",

"x_card_num"=> "4111111111111111",

"x_exp_date"=> "0115",
"x_amount"=> "19.99",

"x_description"=> "Sample Transaction",
"x_first_name"=> "John",

"x_last_name"=> "Doe",

"x_address"=> "1234 Street",

"x_state"=> "WA",

"x_zip"=> "98004"

 

 

 

serotta1958
Member
1 ACCEPTED SOLUTION

Accepted Solutions

http://developer.authorize.net/tools/responsereasoncode/ 

Show 87 as Transactions of this market type cannot be processed on this system.

 

Usually mean you create a wrong test account. You need a Card Not Present account for testing AIM, unless you do need the the Card Present account for http://developer.authorize.net/api/cardpresent/.

View solution in original post

RaynorC1emen7
Expert
4 REPLIES 4

No idea on that one. Error 87 doesn't seem to have a useful description, so i have no idea what kind of error you're getting.

TJPride
Expert

http://developer.authorize.net/tools/responsereasoncode/ 

Show 87 as Transactions of this market type cannot be processed on this system.

 

Usually mean you create a wrong test account. You need a Card Not Present account for testing AIM, unless you do need the the Card Present account for http://developer.authorize.net/api/cardpresent/.

RaynorC1emen7
Expert

That's odd. Why did the text list of error codes not include this information? But that's good to know.

 

Incidently, any particular reason why you (the OP) are using Perl for AIM charges? I do love Perl - it was my first web programming language way back 15 years ago - but it is not in my opinion a really optimal language for creating web sites with, due to the complexity of installing modules for things that generally come with PHP.

 

I'm assuming of course that you're not storing credit card data and then using AIM to charge them automatically, or something odd like that. I do use Perl a lot for automated processes.

Thank you .... Wow...How many hours did I spend on that one.

 

Thanks!!!