Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default Disabling MasterCard doesn't work with own payment module

    We have our own payment module (created by a 3rd party) for processing creditcards, which is working fine, but now we don't want to process MasterCard transactions through that account.

    I tested it with "Credit Card Enable Status - MasterCard - Value 0" at Configuration -> Credit Cards, but this doesn't work. I still can go to the "step 3 of 3" checkout procdure without getting a error.

    Is that possible because there are some things missing in the payment module? Is there another way how we can disable MasterCard transactions?

    Thanks!

    We are using:
    Zen Cart 1.3.0.1
    Database Patch Level: 1.3.0.1

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    We tried to update to the latest zen-cart version, but that doesn't work. Errors at the payment.php

    Any solution to disable mastercard with this version?

    Is there any manual for creating your own payment module?

  3. #3
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    I think you need to get with the developer that created your payment module. It sounds as if there may be hardcoded values that are causing problems.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    Quote Originally Posted by Kim View Post
    I think you need to get with the developer that created your payment module. It sounds as if there may be hardcoded values that are causing problems.
    He don't work any more

    Any way I try to find some solution to put java script on page checkout_payment.php Step 2 of 3 to disable master card, but i'm not sure where i need to put this script.

    Maybe someone know some tutorials about payment scripts??
    In short time we also need to change our payment system, and with new system we will try to make with latest version of zen-cart.

    Thanks!

    We are using:
    Zen Cart 1.3.0.1
    Database Patch Level: 1.3.0.1

  5. #5
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    Who is your merchant account provider?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  6. #6
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    Quote Originally Posted by Kim View Post
    Who is your merchant account provider?

    comfortpay / vxsbill.com

  7. #7
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    I found this function



    $ccnValidation = "var nrcField = document.checkout_payment.number.value;\n" .
    "if ( nrcField.length < " . CC_NUMBER_MIN_LENGTH . ") {\n" .
    " error_message = error_message + 'Invalid credit card number.\\n';\n" .
    " error = 1;\n" .
    "}\n";

    this check only for lenght of min. number, can this check if is there master card first number :5 ?


    here is complete function:





    function javascript_validation()
    {
    $ccvValidation = "var ccvField = document.checkout_payment.cvc.value;\n" .
    "if ( ccvField.length < " . CC_CVV_MIN_LENGTH . ") {\n" .
    " error_message = error_message + 'Invalid CCV entered.\\n';\n" .
    " error = 1;\n" .
    "}\n";
    $zipValidation = "var zipField = document.checkout_payment.zip.value;\n" .
    "if ( zipField.length < 4) {\n" .
    " error_message = error_message + 'Invalid ZIP code entered.\\n';\n" .
    " error = 1;\n" .
    "}\n";
    $addValidation = "var addField = document.checkout_payment.address.value;\n" .
    "if ( addField.length < 3) {\n" .
    " error_message = error_message + 'Invalid address entered.\\n';\n" .
    " error = 1;\n" .
    "}\n";
    $nameValidation = "var fnameField = document.checkout_payment.firstname.value;\n" .
    "var lnameField = document.checkout_payment.lastname.value;\n" .
    "var tName = fnameField + ' ' + lnameField;\n" .
    "if ( tName.length < " . CC_OWNER_MIN_LENGTH . " ) {\n" .
    " error_message = error_message + 'Input name length to low!\\n';\n" .
    " error = 1;\n" .
    "}\n";
    $ccnValidation = "var nrcField = document.checkout_payment.number.value;\n" .
    "if ( nrcField.length < " . CC_NUMBER_MIN_LENGTH . ") {\n" .
    " error_message = error_message + 'Invalid credit card number.\\n';\n" .
    " error = 1;\n" .
    "}\n";
    $valChecks = $nameValidation . $addValidation . $zipValidation . $ccvValidation . $ccnValidation;
    return($valChecks);
    }

  8. #8
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    tnx to all, i found answer how to solve my problem,

    here is script if someone have the same problem...

    ------------------------------
    $ccnValidation = "var nrcField = document.checkout_payment.number.value;\n" .
    "if ( nrcField.substring(0,1) != \"5\");{\n" .
    " error_message = error_message + 'Sorry you use master card, please use one other credit card .\\n';\n" .
    " error = 1;\n" .
    "}\n";

  9. #9
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Disabling MasterCard doesn't work with own payment module

    Thanks for posting the solution you found.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Replies: 10
    Last Post: 10 Jan 2013, 08:13 PM
  2. Writing my own Payment Module?
    By Rayston in forum Addon Payment Modules
    Replies: 9
    Last Post: 29 Dec 2009, 07:42 PM
  3. Help needed with getting Paygate payment module to work
    By LeneZone in forum Addon Payment Modules
    Replies: 5
    Last Post: 4 Nov 2009, 11:43 AM
  4. MerchantAnywhere payment module - work with zen 1.3.7 ??
    By DogTags in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 29 May 2007, 01:23 PM
  5. FAQ module doesn't work
    By dealbyethan.com in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Apr 2007, 03:03 AM

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