By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,854 Members | 869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,854 IT Pros & Developers. It's quick & easy.

OSCommerce & credit cards

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
> 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 discussion thread is closed

Replies have been disabled for this discussion.