uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Credit card expiration

Knowledge Base Lobby : uShop Support Conference : Future Features WishList
Nov-20-17 12:41 AM EST
Original Message
Credit card expiration
Author jdempsey on 03-13-2002 at 18:16 (EST)
After all the trouble of doing a checksum the system doesn't check the card expiration date.

It checks for missing input but will accept any input (such as "XXXXX"). I could write a Javascript to check the data BUT. . . This would use the date on the customers PC which is often wrong. Servers rarely have incorrect time/date. It is also tricky to do when the uShop.pl creates the "continue" button.

So it really needs to be checked in the CGI along with the checksum and missing input. Or at least there should be an option to do so.

Linkpoint (whom I despise but am stuck with) uses two select boxes "expmonth" and "expyear". This makes it easier to do the math. uShop has a "select" option but this is not practical with only one variable. You would need 12 entries per year.

As I told my client, "Details, details, details"
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Credit card expiration Bill Weiner, 2002-03-14 06:45:38 (1)

Messages In This Discussion
         1. RE: Credit card expiration
        Author Bill Weiner on 03-14-2002 at 06:45 (EST)
Yes, I suppose we could add some additional format checking for the credit card expiration date... but the validated format would probably have to be configurable ... or, as you mentioned, "optional" ... because various users are using different formats. We'll look into it for a future release.

In any case, depending on the format that you want to allow, you could modify the "validate_credit_card_parameters" subroutine in the ushop-lib.pl script. That "validate_credit_card_parameters" handles validating all of the credit card fields ... including the expiration date ... so you could add any additional checks you want there.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.