I am using direct post and the response code doesn't match the 99 test tools.
I put in exactly the same data in the 99 test for as I send via my site post.
i get a 99 - transaction can not be completed on my site cc reply page.
Here is my code:
<cfhttp url="https://secure.authorize.net/gateway/transact.dll" method="post">
<cfhttpparam type="FORMFIELD" name="x_Version" value="3.1">
<cfhttpparam type="FORMFIELD" name="x_Login" value="1111111111">
<cfhttpparam type="FORMFIELD" name="x_fp_hash" value="1111111111^#tcode2#^#timestamp#^#total2#">
<cfhttpparam type="FORMFIELD" name="x_fp_timestamp" value="#timestamp#">
<cfhttpparam type="FORMFIELD" name="x_fp_sequence" value="#tcode2#">
<cfhttpparam type="FORMFIELD" name="x_Amount" value="#total2#">
I have made sure all numbers are numbers via cf's number format tag.
What is causing the x_fp_hash or ? not to create the right response code?
tnx in advance
10-03-2014 09:31 PM
Did you run the x_fp_hash thru the HMAC-MD5?
10-04-2014 09:23 AM
Hi Raynor,
I created it using
<cfset timestamp=DateDiff("s", "January 1 1970 00:00", DateConvert('local2UTC', Now())) >
and it matched the timestamp i found on the a/n timestamp page
I also used the same output in the error 99 test page
what i send via my site
1111111111^1003143953^1412450257^90.73
this is the error...... from my site
3,1,99,(TESTMODE) This transaction cannot be accepted.,000000,P,0,,,90.73,CC,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,E6579B86958449CBD301A4CA3B057A74,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
tnx
10-04-2014 12:08 PM - edited 10-04-2014 12:20 PM
What this mean? when you say you send this via my site? as the value of x_fp_hash?
what i send via my site
1111111111^1003143953^1412450257^90.73
I also used the same output in the error 99 test page.
When you did that, you did hard code the rest of the fields so it match the same input from the 99 test page?
I mean the value for these match x_fp_timestamp, x_fp_sequence and x_amount
The other possibility is that the transactionKey is different.
test your transactionKey, copied the link URL and replace it with your. If you are using production account, change the subdomain from test.authorize.net to secure.authorize.net, then put that on a broswer url and go
10-04-2014 12:53 PM
yes i mean the site i am working on that has the cart...
according to the direct post manual the x_p_hash is
API Login ID (x_login)
i send the real x_fp_login which I replaced here with 11111111.
The sequence number of the
transaction (x_fp_sequence)
The timestamp of the sequence
number creation (x_fp_timestamp)
Amount (x_amount)
I was told not to send the x_TRAN_KEY by a/n customer surrort and when I do it either shows a security error or ignores it???
10-04-2014 04:49 PM - edited 10-04-2014 04:52 PM
after 4 seperate phone calls in which the reps said v 3.0 didn't work anymore i noticed in the manual that 3.0 was the DEFAULT version....
so i put in my old 3.0 code and it worked perfect............
i can't believe I wasted over 20 hours inclucing probably 8 on the phone becasue A/N customer service can't get their story straight....
figures.
10-04-2014 05:16 PM
if you are senting the x_fp_hash like
<cfhttpparam type="FORMFIELD" name="x_fp_hash" value="1111111111^#tcode2#^#timestamp#^#total2#">
is wrong.
the x_fp_hash have to be HMAC-MD5 first with those value
read the link
10-04-2014 05:59 PM