numero = 46471
interpreted = N
texte = Well, what's strange is that I do have the month and year in a pulldown,however for the month, the value's of 01 through 09 are getting transposedto just 1-9 (no leading zero) when it goes over to A/N and A/N will fail thepurchase if the date format isn't in 6 digits (mmyyyy). And yes, the optionvalue for the selects is 01 through 09 and 10, 11, 12. So, I dunno.GK| This can be easily resolved by putting the expiration months/years into| pulldown menus. It has been my experience that visitors/customers willenter| all types of crazy things into text fields. So, I try to use radiobuttons,| checkboxes, and pulldown menus as much as possible in my forms as well as| using javascript validation on the text fields.|| I've always said: If you give a web user the ability to screw up formfield,| THEY WILL!||| On 12/20/02 5:20 PM, Gary Krockover wrote:|| > Folks,| >| > The following is a copy of an email that I sent to Terry Wilson, who's a| > list member that has provided much help on the A/N issue(s). I foundthat a| > client of mine was receiving about 30% failure rate on orders, all withthe| > error of Expiration date invalid. The other 70% of the orders were| > passing fine. This is using A/N and the ADC Relay Response method.| >| > The email is as follows:| > -----------------------------| > I just wanted to give you a follow up on what I've found in case you run| > into the same problem. I placed one of my clients accounts into testmode| > and then tried to purchase using a 2-digit month on the credit card.All| > those tests would fail, however with a single-digit exp month, the test| > would pass. I had added a convertchars around the exp month to convertthem| > to 2 digits per A/N tech:| >| > from to| > 1 01| > 2 02| > 3 03| > 4 04| > 5 05| > 6 06| > 7 07| > 8 08| > 9 09| > 10 10| > 11 11| > 12 12| >| > If I removed this convertchars, all 2 digit months would now PASS andsingle| > digit months would FAIL. If I enabled this convertchars, the opposite| > became true. So, with a simple showif, I now either use theconvertchars or| > I don't:| >| > [showif [expmonth]<10]| > db=monthconv.db][expmonth][/convertchars][expyear]>| > [/showif]| > [showif [expmonth]>9]| > | > [/showif]| >| > All tests thereafter worked.| >| > My expyear has remained in the 4 digit format.| >| > ----------------------| >| > I'll report back if this turns out to be incorrect, but in test mode,this| > seems to be a fix for a problem that I have noticed, but have not seen| > reported on this list.| >| > GK-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Re: Authorizenet and expiration dates (Gary Krockover 2002)
Well, what's strange is that I do have the month and year in a pulldown,however for the month, the value's of 01 through 09 are getting transposedto just 1-9 (no leading zero) when it goes over to A/N and A/N will fail thepurchase if the date format isn't in 6 digits (mmyyyy). And yes, the optionvalue for the selects is 01 through 09 and 10, 11, 12. So, I dunno.GK| This can be easily resolved by putting the expiration months/years into| pulldown menus. It has been my experience that visitors/customers willenter| all types of crazy things into text fields. So, I try to use radiobuttons,| checkboxes, and pulldown menus as much as possible in my forms as well as| using javascript validation on the text fields.|| I've always said: If you give a web user the ability to screw up formfield,| THEY WILL!||| On 12/20/02 5:20 PM, Gary Krockover wrote:|| > Folks,| >| > The following is a copy of an email that I sent to Terry Wilson, who's a| > list member that has provided much help on the A/N issue(s). I foundthat a| > client of mine was receiving about 30% failure rate on orders, all withthe| > error of Expiration date invalid. The other 70% of the orders were| > passing fine. This is using A/N and the ADC Relay Response method.| >| > The email is as follows:| > -----------------------------| > I just wanted to give you a follow up on what I've found in case you run| > into the same problem. I placed one of my clients accounts into testmode| > and then tried to purchase using a 2-digit month on the credit card.All| > those tests would fail, however with a single-digit exp month, the test| > would pass. I had added a convertchars around the exp month to convertthem| > to 2 digits per A/N tech:| >| > from to| > 1 01| > 2 02| > 3 03| > 4 04| > 5 05| > 6 06| > 7 07| > 8 08| > 9 09| > 10 10| > 11 11| > 12 12| >| > If I removed this convertchars, all 2 digit months would now PASS andsingle| > digit months would FAIL. If I enabled this convertchars, the opposite| > became true. So, with a simple showif, I now either use theconvertchars or| > I don't:| >| > [showif [expmonth]<10]| > db=monthconv.db][expmonth][/convertchars][expyear]>| > [/showif]| > [showif [expmonth]>9]| > | > [/showif]| >| > All tests thereafter worked.| >| > My expyear has remained in the 4 digit format.| >| > ----------------------| >| > I'll report back if this turns out to be incorrect, but in test mode,this| > seems to be a fix for a problem that I have noticed, but have not seen| > reported on this list.| >| > GK-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Gary Krockover
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...