I'll put this up as a resource I found useful when working with authorize.net. 
Check out the cf_aim.zip file for an example using the http post method and 
accessing all fields of the the response.

Note the CF sample code attachments.

Hope this is helpful,
Mike.

On Wednesday 07 December 2005 9:25 pm, Kevin Fricke wrote:
> First, you need to use <cfhttp> to post to
> https://secure.authorize.net/gateway/transact.dss
>
> Then you can do the following to get the results.
>
> <cfset api_response = cfhttp.filecontent>
> <cfset responseCode = gettoken(api_response, 1, "|")>
> <cfset responseMsg = listGetAt(api_response, 4, "|")>
> <cfset trasactionCode = listGetAt(api_response, 7 , "|")>
>
> This will give you all of the information you need to determine if the
> order processed correctly or not.
>
>
> Does this help?
>
> Kevin
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Mark Armstrong
> Sent: Wednesday, December 07, 2005 3:17 PM
> To: Dallas/Fort Worth ColdFusion User Group Mailing List
> Subject: [DFW CFUG] CF Newbie, formatting response data from authorize.net
>
> Hello!
>
> Client wants the make the current "thank you page" (upon correct response
> code from authorize.net) into a CONFIRMATION page.
>
> Authorize.net says they send it back as delimiting character vs
> encapsulation character ... is this too far over my head to figure this
> out? details are below... for custom value on the characters...
> for CF?
>
> My current confirmation form... I was thinking CF output.. but I know that
> can't be right. What do I need to focus on in terms of formatting the
> response into a html page?
>
> Example: the field data will come back to me for formatting into the html
> page:
>
> <input name="TicketTtl" type="text" size="4" maxlength="10">
>      number of tickets will be held under <u>#FORM.Billingfirst_name#</u>
>      <u>#FORM.Billinglast_name#</u>
>
> Thanks,
>
> Mark
>
>
>
> Using the Merchant Interface to Configure AIM
>
> Merchants submitting transactions via AIM can configure how the gateway
> should construct the response back to the merchant server initiating the
> request.
>
> .       By default, the response fields will be delimited with a
> comma. The merchant can override the default separator and specify what
> character should separate the response fields.
>
> .       The response fields will not be encapsulated by default. The
> merchant can configure the encapsulation character. It is recommended that
> the merchant override the system default and set an encapsulation
> character.
>
>
>
> The delimiting character and the encapsulation character can be set in the
> Merchant Interface by doing the following:
>
> 1.     Log into the Merchant Interface
>
> 2.     Select Settings from the Main Menu
>
> 3.     Click Direct Response from the Transaction Response section
>
> 4.     Configure the settings:
>
> a.      Set Delimited Response to Yes
>
> b.     Choose the Default Delimited Separator from the drop-down box
> or enter a customized value
>
> c.      Choose the Field Encapsulation Character from the drop-down
> box or enter a customized value
>
> 5.     Click Submit to save changes
> _______________________________________________
> List mailing list
> Reply to DFWCFUG:
> [email protected]
> Subscribe/Unsubscribe:
> http://lists1.safesecureweb.com/mailman/listinfo/list
> List Archive:
> http://lists1.safesecureweb.com/mailman/private/list
> DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
>
>
>
> _______________________________________________
> List mailing list
> Reply to DFWCFUG:
> [email protected]
> Subscribe/Unsubscribe:
> http://lists1.safesecureweb.com/mailman/listinfo/list
> List Archive:
> http://lists1.safesecureweb.com/mailman/private/list
> DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
_______________________________________________
List mailing list
Reply to DFWCFUG: 
[email protected]
Subscribe/Unsubscribe: 
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archive: 
http://lists1.safesecureweb.com/mailman/private/list
DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/

Reply via email to