Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Accept Different Credit Cards in Different Zones?


hubby2debbie

Recommended Posts

It is necessary for my store owner to allow some credit cards in some geographic zones, and other credit cards in other zones. I've tried making a copy of the cc payment module, renaming it "visa", and changing the occurrences to cc in the module files to visa as well. My new module appears to work when I place a test order, but when I look at the order in the admin area, it isn't displaying the credit card number.

 

I discovered that the credit card numbers weren't being written to the database because changing "cc" to "visa" in all the module files changed the names of tables and table fields to database locations that didn't exist.

 

Now that I think about it, I just need to change the name of the module, so that it won't cause a conflict, and change the name of the input fields that are generated when the page loads, in case there is more than one acceptable card type for a zone. I believe that the rest can be a clone of the existing module.

 

Has anyone done this? If not, can someone help me figure it out?

 

Thanks!

Peter

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