Will,

I ended up creating a function that cleaned up the data and built a
structure out of it.  It is in the office right now but i can send it to you
on Monday.

If you are trying to resolve the issue over the weekend, here are a few
pointers.

To resolve the empty list item issue, what I would recommend is taking the
response and replacing the commas (,) with space comma ( ,).  If there is no
character between 2 commas in a list, cf will not see it as an item, but if
there is a space then it will.

If you download the CF code sample from authorize.net they have an example
of how they parse the results out of the string.  This is the code that i
utilized when i created my function. (It is the huge case statement half way
through the file too much to include in this email)

Link: http://developer.authorize.net/samplecode/

I will send you the code on Monday.

-Si

blog: http://www.simonfree.com
email: [EMAIL PROTECTED]




On Fri, Jul 11, 2008 at 9:10 PM, Will Tomlinson <[EMAIL PROTECTED]> wrote:

> I've used authorize.net's processing for a while now. An issue just
> arose... I guess it's always been there, but it's never really been a
> problem.
>
> Their response looks like this:
>
> 3,1,6,The credit card number is invalid.,,P,0,,,28.21,CC,auth_capture,etc.
>
> I've been reading it using listGetAt(3), listGetAt(4),etc.
>
> The problem is when they respond with an invalid card, or something other
> than the norm., the response list changes. Which throws off my listGetAt's.
>
> And see those empty list items? CF doesn't even count that as a list item,
> so the list count shifts to the left. i.e. position 7 is now 28.21. Even tho
> there are empty positions in front of it.
>
> Is there a better way I can read these positions so they'll be consistent?
> It's driving us crazy because the reponse messages to the customer are
> driven by this. ick!
>
> Thanks,
> Will
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308958
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to