Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    23
    Plugin Contributions
    0

    Default Add new credit card

    Hello.
    Iīll process credit cards manually offline so i enable the CC payment module.
    What i need to do now is to accept a different credit card type, not listed in Zen Cart. Itīs a regional credit card and start with "589892"(14 digits in totall).
    Itīs possible to start accpeting these type of cc using the actual cc.php module???

    thanks!, and have a happy new year!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Add new credit card

    I believe Maestro cards fall into that range ... 560000-589999 but are 16 digits in length. You might try enabling Maestro in Admin->Configuration->Credit Cards.
    (Maestro was added in v1.3.7)

    If you are a programmer and must add your own CC number algorithm, you can write custom code into the cc_validation class file. Note that this file is not overridable so you will have to redo your customizations when upgrading. You will need a good understanding of regex and PHP to make the changes. You may also need to study and understand LUHN or MOD10 check-digit algorithms.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Dec 2006
    Posts
    23
    Plugin Contributions
    0

    Default Re: Add new credit card

    Sorry, the card is 16 digits in length not 14. I enable maestro, but don´t work fine.
    I´m trying to change maestro algorithm without success.

    /***** MAESTRO *****/
    elseif (( (($NumberLeft6 >= 493698) && ($NumberLeft6 <= 493699))
    || ($NumberLeft6 == 490303)
    || (($NumberLeft6 >= 633302) && ($NumberLeft6 <= 633349))
    || (($NumberLeft6 >= 675900) && ($NumberLeft6 <= 675999))
    || (($NumberLeft6 >= 500000) && ($NumberLeft6 <= 509999))
    || (($NumberLeft6 >= 560000) && ($NumberLeft6 <= 589999))
    || (($NumberLeft6 >= 600000) && ($NumberLeft6 <= 699999))
    ) && (ereg('[0-9]{16}', $this->cc_number)) and CC_ENABLED_MAESTRO=='1') {
    $this->cc_type = "Maestro";
    }

    The only thing i now is that the card i need to add, start always with these "589892" How can i setup the algorithm correctly?.

    thanks!

 

 

Similar Threads

  1. Add new field credit card list
    By jaishem in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Apr 2010, 05:18 PM
  2. Replies: 1
    Last Post: 26 Oct 2009, 03:30 AM
  3. Add Credit Card field?
    By jibon in forum General Questions
    Replies: 4
    Last Post: 12 Oct 2009, 11:33 PM
  4. Why do I have credit card fields when the credit card module is not enabled?
    By RayDube in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 8 Jan 2009, 07:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR