Using the sample code provided in the AIM and am getting this return response:
3|1|103|This transaction cannot be accepted...
I am using the API login ID and Transaction Code provided by Authorize.net and have even gone as far as getting a new transaction key.
Any ideas?
Thanks!
Solved! Go to Solution.
07-29-2012 08:05 AM
<cfhttpparam type="FORMFIELD" name="x_trans_key" value="#transkey#">
Should be x_tran_key
07-30-2012 01:42 PM
3 | 103 | This transaction cannot be accepted. | A valid fingerprint, Transaction Key, or password is required for this transaction. |
Can you see/debug post data before sending to authorize.net?
07-29-2012 12:36 PM
I hard-coded the test page to get it working before trying to dynamically populate values because I didn't want to have to figure out what went wrong with everything there.
At this point, I'm using the exact code provided by authorize.net. At first I didn't use the <cfsetting enablecfoutputonly="true">, but added it after I first started having problems to make sure that the data getting sent over in the cfhttp post was clean.
Is't pulling error message 103 which is an invalid transaction key, fingerprint or password. As far as I know, there's no fingerprint or password code in the sample provided by authorize.net.
Do you think thats the problem? If so, how do I generate a fingerprint? Is the password the API Login ID?
Thanks!
07-29-2012 06:22 PM
Just want to make it clear, the only thing you change on the sample code sample.cfm is put your loginID and transactionKEY, and you getting 103 error? make sure there are no spaces in transactionKey.
07-30-2012 04:23 AM - edited 07-30-2012 04:24 AM
That's the deal.... I even got a new transaction key because that's what support told me to do.
I'm also sending the data to https://test.authorize.net/gateway/transact.dll
Do I have to do anything to activate the test account other than login?
Just to make sure - the x_login field is populated with the API Login ID provided at signup, right?
07-30-2012 06:50 AM
Do I have to do anything to activate the test account other than login?
No
Just to make sure - the x_login field is populated with the API Login ID provided at signup, right?
Yes
Copy the following link and change the [yourID] and [yourKey] and run it in a browser and see if this work
07-30-2012 06:58 AM - edited 07-30-2012 06:59 AM
That works.... but it still doesn't work on the page.
Here's the exact code I'm using:
---------------------------------------------
<cfsetting enablecfoutputonly="true">
<!--- test the card with authorize.net to make sure it is valid --->
<cfhttp method="POST" url="https://test.authorize.net/gateway/transact.dll">
<cfhttpparam type="FORMFIELD" name="x_login" value="#login#">
<cfhttpparam type="FORMFIELD" name="x_trans_key" value="#transkey#">
<cfhttpparam type="FORMFIELD" name="x_delim_data" value="TRUE">
<cfhttpparam type="FORMFIELD" name="x_delim_char" value="|">
<cfhttpparam type="FORMFIELD" name="x_relay_response" value="FALSE">
<cfhttpparam type="FORMFIELD" name="x_type" value="AUTH_ONLY">
<cfhttpparam type="FORMFIELD" name="x_method" value="CC">
<cfhttpparam type="FORMFIELD" name="x_card_num" value="4111111111111111">
<cfhttpparam type="FORMFIELD" name="x_exp_date" value="0115">
<cfhttpparam type="FORMFIELD" name="x_amount" value="1.00">
<cfhttpparam type="FORMFIELD" name="x_description" value="Card Verification">
<cfhttpparam type="FORMFIELD" name="x_first_name" value="John">
<cfhttpparam type="FORMFIELD" name="x_last_name" value="Doe">
<cfhttpparam type="FORMFIELD" name="x_address" value="1234 20 Street">
<cfhttpparam type="FORMFIELD" name="x_state" value="WA">
<cfhttpparam type="FORMFIELD" name="x_zip" value="98004">
</cfhttp>
07-30-2012 10:00 AM - edited 07-30-2012 10:04 AM
<cfhttpparam type="FORMFIELD" name="x_trans_key" value="#transkey#">
Should be x_tran_key
07-30-2012 01:42 PM
That was it. Thank you , thank you, thank you!
07-30-2012 03:45 PM