From: Sean Renet <[EMAIL PROTECTED]>



> I went through there myups account and coundn't find anything useful.  That
> is why I posted here to see if anyone could think of anything faster than
> what I came up with.
> 

I understood what you were looking for; what you listed didn't look familiar
so I offered what I knew of as the MOD 10 check digit algorithm. I mentioned
the UPS third party developer tools because it seemed that you were writing
a cf app that could take advantage of all that UPS has already prepared.
You know - not reinventing the wheel and all that. I didn't mean to lead you
astray. I still think it would be worthwhile for you to do a more detailed
checkout of the UPS tools. With that thought in mind here is this ...

After logging in to your myUPS account you go to OnLine Tools
and read the tech faqs - you want to end up with a url like

http://www.ups.com/ecommerce/techdocs/e5c1%5fwelcome.html
and
http://www.ups.com/ecommerce/techdocs/e5c7%5ftrackdata.html  

That's part of the tech documentation for using the
datastreaming or inline html tools. There is a *lot* of info there.
If you try to go there direct you'll get the log-in page.

It was clear to me that it is possible to connect to their validation
cgi from a cf template just from those two pages listed above.

I got to the tools through my myUPS account but you can go directly to
the 3rd party tool section with 

http://www.ec.ups.com/ecommerce/gettools/gtools_intro.html
http://www.ec.ups.com/ecommerce/gettools/gtools_e2_thrdpty_lic.html


> Where did you get your examples from?  The manual I am reading is completely
> contrary to what you provided.
> 
> What I have is
> 1)sum all the odds
> 2)sum all the evens and multiply by 2
> 3)add results of 1) and 2) together
> 4) subtract 3) from the next multiple of 10
> 5 The remainder of 4 is your checkdigit.
> 
> Is yours just a different spin on this?  Or am I reading some manual from
> the 20's?
>
 
The one I wrote is the UPC-A version.  It's what I've always known as the 
MOD 10 check digit alogorithm. It's applied by maxicode to their
barcode products, it's the mod 10 used for cc and chk validations
and I am fairly sure it is the one used by UPS.

Here is a random sample of web pages that mention the MOD 10 check 
digit algorithm.

http://www.windat.org/rkives/clippings/9601/art4.htm
http://www.loftware.com/support/knowledgebase/0009240.htm
http://hypertising.com/DnDCGI/cd/scripts/perlshop/perlshop.txt
http://www.faqts.com/knowledge-base/view.phtml/aid/3103/fid/330/lang

Hope all that is helpful.

Pan




------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to