• Resolved stevewolfe555

    (@stevewolfe555)


    Please enter your card details to make a payment. Developers: Please make sure that you are including jQuery and there are no JavaScript errors on the page.

    Hello,

    I have checked for JS errors which there doesn’t appear to be any. I have jQuery installed.

    How do I go about debugging this error? There doesn’t seem to be a lot going on.

    For now I have version 3.0.2 installed and i had the same error with 3.0.7.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter stevewolfe555

    (@stevewolfe555)

    I have noticed I get the error when I enter in the default test card, ex date and cvc number.

    Then when i just click submit order again after the error appears it goes through.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    This error is almost always caused by a theme or plugin conflict – though it doesn’t usually go through on the second attempt.

    The best way to determine if the issue is being caused by a theme and/or plugin is to do the following:

    1. Temporarily switch your theme back to the [Twenty Sixteen](https://www.ads-software.com/themes/twentysixteen/) Theme.
    2. Disable all plugins except for WooCommerce and Stripe.
    3. Test to see if the issue has been resolved.

    If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict.

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Okay well I have done that and I think it works,

    How does the plugin get the address fields?

    As my address fields are hidden on the page would that effect it?

    (their hidden till you click edit but they still are there)

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    I’m not sure what you mean – the plugin grabs the address fields that are on the page. If it can’t grab them, it won’t be able to complete the payment. In that case, you’d see an error regarding the address, though.

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Whats the best way to work out what’s causing it to throw the error.

    I am running jquery 1.12 if that makes any difference.

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Im guessing its to do with the non-standard layout that out checkout page is using.

    I have just been looking through stripe.js

    Are there any other files that I might need to check?

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    I’m afraid we only support standard usage of the Stripe plugin and don’t go into customization of it. Someone else may be able to chime in and help, though.

    The best thing to do is make sure that Stripe is working correctly in a basic situation (just WooCommerce, Stripe and the Twenty Seventeen theme). Once you’re sure it’s working, build up your changes from there to see where it may be going wrong.

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Well I can see the token ajax request completing but it doesn’t get any further.

    When however I inspect the code and step over it does work. Almost like slowing it down does the job.

    Would you have any idea as to why stepping over the code in the inspector makes it work?

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    I’m not sure – the code works correctly on non-customized sites. I’m sorry I can’t help you further with this!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error with setting Stipe up’ is closed to new replies.