Good evening everyone---
I'm at the end of my rope, I can't get cfhttp to work. I've read through
both of Ben fortas MX books, searched on line and experimented until I'm
blue in the face. The code seems good to me- Please, I need a second pair
of eyes:
SETUP: I'm collecting info from a form, sending it to a CFC to add sensitive
data then sending that "form" which I've built to a API on another server.
STEP 1
The form works fine, collects, calls, and passes information to the function
inside My cfc.
I think the next step is the problem. From all my test (Using cfdump with
HTTP variables which produces nothing, submitting to different urls some
that don't exists, which DOES not produce an error it seems the cfhttp tag
is not submitting any data. It's just sitting there-
Here is the CFHTTP code (inside my function):
<cffunction name="addCreditInfo"
access="remote"
returntype="void"
displayname="add sensitive info to a credit card
transaction">
<!--- this will be the live address--->
<!--- URL="https://secure.authorize.net/gateway/transact.dll"
method="post">--->
<!--- testing address ONLY--->
<cfhttp url="
http://localhost/12.5/components/cart/receiveResponse.cfc?method=setResponse
"
method="post">
<cfhttpparam type="formfield" name="x_Version" value="3.1">
<cfhttpparam type="formfield" name="x_Delim_Data" value="true">
<cfhttpparam type="formfield" name="x_login" value="#logname#">
<cfhttpparam type="formfield" name="x_password" value="#passWord#">
<cfhttpparam type="formfield" name="x_Type" value="AUTH_CAPTURE">
<cfhttpparam type="formfield" name="x_First_Name"
value="#arguments.x_First_Name#">
<cfhttpparam type="formfield" name="x_Last_Name"
value="#arguments.x_Last_Name#">
<cfhttpparam type="formfield" name="x_Company"
value="#arguments.x_Company#">
<cfhttpparam type="formfield" name="x_Address"
value="#arguments.x_Address#">
<cfhttpparam type="formfield" name="x_City" value="#arguments.x_City#">
<cfhttpparam type="formfield" name="x_State" value="#arguments.x_State#">
<cfhttpparam type="formfield" name="x_Zip" value="#arguments.x_Zip#">
<cfhttpparam type="formfield" name="x_Country"
value="#arguments.x_Country#">
<cfhttpparam type="formfield" name="x_Card_Num"
value="#arguments.x_Card_Num#">
<cfhttpparam type="formfield" name="x_Exp_Date"
value="#arguments.x_Exp_Date#">
<cfhttpparam type="formfield" name="x_Amount" value="#arguments.x_Amount#">
<cfhttpparam type="formfield" name="x_Card_Num"
value="#arguments.x_Card_Num#">
<cfhttpparam type="formfield" name="x_Exp_Date"
value="#arguments.x_Exp_Date#">
<cfhttpparam type="formfield" name="x_Customer_IP"
value="#arguments.x_Customer_IP#">
</cfhttp>
</cffunction>
STEP 2
This is the function inside another CFC. For testing purposes the first CFC
is submitting via CFHTTP to the second CFC. When the site goes live, the
first CFC will submit to authorize Net, which in turn will submit back to
the second CFC.
In either case, I don't seem to be submitting ANYTHING via the CFHTTP in the
first CFC.
As always,
My eternal gratitude in advance
Jay
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4