Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment Module Sending expiration data wrong


thecodingmonkey

Recommended Posts

I am having problem my customers when they try to purchase are getting rejected beacuse their credit card expiration is wrong, when I check why i Notice my credit card processing company is only excepting the first two digits 20 instead of 2004

 

When I go into my credt card script

I see that the rop down is defined like this

 

$expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));

 

but if I change it to this $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%y',mktime(0,0,0,1,1,$i)));

 

 

so that year read like this 04

05

06

 

Instead of like this 2004

2005

2006

 

it is still sending the 20 to my credit card processor

 

Why is this, and how can I fix it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...