Welcome, Guest ( Customer Panel | Login )




 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  

dcwebman
VP-CART New User

USA
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.
Jeff




support
Administrator

4679 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
0 Item(s)
$0.00