473,382 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

OSCommerce & credit cards

OK, I know a few of you out there use OSC and many of you have also
modified it a bit, so I am hoping someone has done something similar...

I have the CC payment module installed, not a problem up to this point.
However, I now need to limit the types of cards people can use. I want
to allow payments for Visa, Master, Discover and AmEx, but none of the
others.

My first reaction was to go into the cc_validation::validate mthod and
simply comment out the patterns for the card types I do not want to support.

Would this really be all I need to do? Anyone else have experience with
doing similar mods to OSC?

TIA

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #1
3 1866
On Tue, 06 Jul 2004 16:40:29 GMT, Justin Koivisto wrote:
OK, I know a few of you out there use OSC and many of you have also
modified it a bit, so I am hoping someone has done something similar...

I have the CC payment module installed, not a problem up to this point.
However, I now need to limit the types of cards people can use. I want
to allow payments for Visa, Master, Discover and AmEx, but none of the
others.

My first reaction was to go into the cc_validation::validate mthod and
simply comment out the patterns for the card types I do not want to support.

Would this really be all I need to do? Anyone else have experience with
doing similar mods to OSC?


That should be ok. I would also do it in Javascript and save some server
roundtrips and tell people the types of credit card you support. A simple
Javascript check can look at the first digit and make sure it's 3 or 4 or 5
or whatever is for Discover plus the self card validation algorithm.
--
Karim
http://www.cheapesthosting.com - Innovative Web Hosting since 1998
Online calendars with event email notification - Online Photo Album (RSS
Enabled)
Jul 17 '05 #2
Justin Koivisto <sp**@koivi.com> emerged reluctantly from the
curtain and staggered drunkenly up to the mic. In a cracked and
slurred voice he muttered:
OK, I know a few of you out there use OSC and many of you have
also modified it a bit, so I am hoping someone has done
something similar...

I have the CC payment module installed, not a problem up to this
point. However, I now need to limit the types of cards people
can use. I want to allow payments for Visa, Master, Discover and
AmEx, but none of the others.

My first reaction was to go into the cc_validation::validate
mthod and simply comment out the patterns for the card types I
do not want to support.

Would this really be all I need to do? Anyone else have
experience with doing similar mods to OSC?

TIA


You need to be editing a file named ccval.php

--
Phil Roberts | Without me its just aweso. | http://www.flatnet.net/

"Mankind differs from the animals only by a little,
and most people throw that away."
- Confucious
Jul 17 '05 #3
> My first reaction was to go into the cc_validation::validate mthod and
simply comment out the patterns for the card types I do not want to support.
Would this really be all I need to do? Anyone else have experience with
doing similar mods to OSC?


Justin,

What board to I remember you from??? Fusebox huh?
Anyway, I did a custom mod for a client a while back that did something
similar.

The mod allowed one to select the card type from dropdown, and the card type
selected
must match the number entered (double validation).

Send e-mail to. laidbak 69 @ hot... and I will give you detailed
instructions on what to modify w/o messing w/ the default
code too much.

____________________________________
Wil Moore III, MCP | Integrations Specialist

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kaptain kernel | last post by:
I'm implementing a simple credit card number check on my website, in order to trap user errors. it doesn't validate with the bank, but validates against certain known rules (e.g. Amex always begins...
0
by: JStrummer | last post by:
Does anyone know if oscommerce has a module to support Verisign's Payflow Pro? I downloaded the one listed as "pro" here...
3
by: solomon_13000 | last post by:
> Wonthaggi Civic Theatre 'WCT' Case Study > > The town of Wonthaggi has a theatre which is owned and > operated by the local council, it is called the > Wonthaggi Civic Theatre (WCT) and a wide...
5
by: Jake | last post by:
I in the process of building a web-site using .net (C#). I just finished building the shopping cart. What I need is to find examples, details, or code packages that I can include in my web-site...
4
by: Michelle A. | last post by:
I have a form that takes in a credit card number, just a series of numbers 1234123412341234. When they get to the "Review" page and display all the information a user has entered, I would like the...
6
by: Arne | last post by:
What would be a good component for processing credit cards? (I am not using commerce server.) Would I need to encrypt the credit card column in the database?
6
by: Chris Davoli | last post by:
We want to process credit cards/debit cards on our web site. We are using VB.net, so if we could get some vb.net components to validate and handle the transactions, or a web service that we could...
4
by: opensourcearts | last post by:
Hello all, I am working on an application that is basically a bridge between oscommerce and gallery2 software, with some other functionality. It will allow users to port all of their media...
17
by: sharsy | last post by:
Hello guys, I would like some help in generating query criteria that will identify credit cards that have expired on an access database. The specific Field is formatted with a Data Type of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.