(10566 Credit card type unsupported)

paulthainpaulthain Member
in Bugs & Feature Requests edited January 2011
Greetings

Today we've had a dozen of -

"Error: There was an error processing your payment: (10566 Credit card type unsupported) The credit card type is not supported"

Using PayPal gateway at stageplays.com

Has anything changed?
Comments
  • brettbrett FoxyCart Team
    edited January 2011
    Paul, can you take a look at some of the questions I asked here?
    http://forum.foxycart.com/comments.php?DiscussionID=4136
    Let me know (on that thread) and hopefully we can figure out what's going on.


    Nevermind. See my next comment.
  • brettbrett FoxyCart Team
    Sorry Paul. Here's your comment (which I've moved from the other thread to this).
    re

    "Paul, can you take a look at some of the questions I asked here?
    http://forum.foxycart.com/comments.php?DiscussionID=4136
    Let me know (on that thread) and hopefully we can figure out what's going on."

    Where are the questions, Brett?

    In the last few hours I've gleaned that the problem is often associated with PayPal, AMEX and occasionally Canada ie Card only valid within Canada

    But I'll try and answer and specific questions (I assume you've checked our Error log/s at stageplays.com? If not, please do)

    I wasn't clear but have you checked with your PayPal account to see that you've accepted all agreements and such? This is the one that may be the most likely culprit:
    https://www.x.com/community/ppx/system_status/mts_updates/blog/2010/10/18/bulletin-important-information-regarding-the-new-paypalamerican-express-agreement

    We'll dig a little on our end but if you could check on your PayPal account that'd be a good first step.
  • paulthainpaulthain Member
    edited January 2011
    Spoke to PayPal

    Problem is AMEX when the Paypal account is held in the UK

    Paypal support AMEX themselves but currently don't support AMEX via third-party Carts because of problems converting dollars to UK pounds on the fly

    They plan to bring out a "product" later this year that may address this, but can't yet offer details

    Bummer
  • brettbrett FoxyCart Team
    Huh. Thanks for that clarification. So you may want to remove the AmEx logo from your checkout, and if you wanted to you could add a little javascript to throw an error if the card number starts with a 3. Let us know if you need help with those, and thanks for letting us know what PayPal said.
  • Glad to help

    But re your suggestion - could the script return a message like - "Sorry, we can only accept AMEX via PayPal"

    If so, how?
  • fc_adamfc_adam FoxyCart Team
    Hey Paul,

    Sorry for the delay - putting the following on your checkout template should work for you, paste it right before the closing
    </head>
    
    tag in your template.

    [code]<script type="text/javascript">
    jQuery("#cc_number").change(function(){
    if(FC.validator.getCardType(jQuery(this).val()) == "Amex") {
    jQuery(this).val("");
    jQuery(this).focus();
    alert("Sorry, we can only accept AMEX via PayPal");
    }
    });</script>
  • Excellent!

    Many thanks, much appreciated
  • Hi Brett

    re -

    Sorry for the delay - putting the following on your checkout template should work for you, paste it right before the closing </head> tag in your template.
    <script type="text/javascript">
    jQuery("#cc_number").change(function(){
    if(FC.validator.getCardType(jQuery(this).val()) == "Amex") {
    jQuery(this).val("");
    jQuery(this).focus();
    alert("Sorry, we can only accept AMEX via PayPal");
    }
    });</script>

    Our techie reports this doesn't work - any idea why?

    best wishes

    Paul
  • fc_adamfc_adam FoxyCart Team
    @paulthain,

    Can you whisper us your store that you're applying this to? We'll need to see it in action to see what's going on.
  • Thanks for the prompt response

    The Carts are at -

    stageplays.com & stageplays.co.uk
  • lukeluke FoxyCart Team
    Have you tried wrapping everything in a document ready statement? Just about all jQuery should be wrapped that way to ensure everything is loaded and ready before the script runs:
    [code]
    jQuery(document).ready(function() {

    // your code here

    });

    We'll take another look in our sandbox as well.
  • lukeluke FoxyCart Team
    This appears to work just fine. Is it still not working for you?
    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery("#cc_number").change(function(){
    if(FC.validator.getCardType(jQuery(this).val()) == "Amex") {
    jQuery(this).val("");
    jQuery(this).focus();
    alert("Sorry, we can only accept AMEX via PayPal");
    }
    });
    });
    </script>
Sign In or Register to comment.