VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Problems and bugs
 credit card months always start at 1
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

127 Posts

Posted - February 15 2005 :  11:39:19  Show Profile  Reply with Quote
When I get to the credit card entry page, I was surprised that since it was February all ready that it still said 1 as the month with the year as 05. I'm still in test mode so I would always have to change the month. Digging into the code, I found the bug so thought I would share it.

It's in function GenerateMM and is located in 2 files. The problem line is:
    If name = month then
and it doesn't always match because of comparing different variable types. Changing it to this lets it work:
    If cint(name) = cint(month) then

Here's the 2 files and the lines where the problem line is located.

sslshopcheckout.asp: line 581
shopvalidatecreditcards.asp: line 191

Hope that helps somebody.


4284 Posts

Posted - February 19 2005 :  21:37:07  Show Profile  Visit support's Homepage  Reply with Quote
Thanks Jeff.

Will add this to the next release notes.

Thank you.
VPASP Support

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000