Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to accept maestro cards?


mwo

Recommended Posts

Hi. Can anyone help me to add the acceptance of the maestro credit cards to my site? Is it possible just to add two lines of code to the original cc_validation.php file like the ones below for visa & mastercard?

 

 

if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) {

$this->cc_type = 'Visa';

} elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) {

$this->cc_type = 'Master Card';

 

If anyone knows the appropriate code as above but to validate maestro cards, it would be a real lifesaver since i have already had a few complaints from customers regarding this.

 

Thanks in advance, mwo.

Link to comment
Share on other sites

  • 4 weeks later...

Me too. It would be a great idea if someone could take the trouble to post the most up to date info for people who only have a basic understanding of the system. It can only benefit everyone in the long term

 

Brett

 

Hi. Can anyone help me to add the acceptance of the maestro credit cards to my site? Is it possible just to add two lines of code to the original cc_validation.php file like the ones below for visa & mastercard?

if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) {

$this->cc_type = 'Visa';

} elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) {

$this->cc_type = 'Master Card';

 

If anyone knows the appropriate code as above but to validate maestro cards, it would be a real lifesaver since i have already had a few complaints from customers regarding this.

 

Thanks in advance, mwo.

Link to comment
Share on other sites

Hi.

 

People, give me, please, some idea/info - how does the credit card module work, what do I need to put it to work for my osCommerce site selling in Spain? How are the money extracted from the customers credit card account and transfered to me?

 

Regards

George

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.

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