Giter Site home page Giter Site logo

Comments (9)

roykho avatar roykho commented on July 17, 2024

@mattalberon - so I have just tested this with a wrong CC # and I get the error right on top of the CC fields. Like so

So it is not hidden. Could you please tell me more about this?

from woocommerce-gateway-stripe.

roykho avatar roykho commented on July 17, 2024

Closing due to no activity.

from woocommerce-gateway-stripe.

miklb avatar miklb commented on July 17, 2024

I'm experiencing this issue currently. The error displays for a short time, then is hidden. I can see the errors in the DOM if I inspect in Safari Tech Preview


<ul class="nm-shop-notice woocommerce-error nm-shop-notice-multiple">
        <li><span><i class="nm-font nm-font-close"></i><strong>Credit Card Number</strong> is a required field.</span></li>
        <li><span><i class="nm-font nm-font-close"></i><strong>Credit Card Expiration</strong> is a required field.</span></li>
        <li><span><i class="nm-font nm-font-close"></i><strong>Credit Card CVC</strong> is a required field.</span></li>
    </ul>

Inline validation does work, however that doesn't seem like a great solution if someone misses the inline error.

Suggestions?

from woocommerce-gateway-stripe.

miklb avatar miklb commented on July 17, 2024

Note,I'm using the Savoy theme with a custom child theme, but the error message doesn't seem to be targeted anywhere in the Savoy theme or my child theme.

from woocommerce-gateway-stripe.

miklb avatar miklb commented on July 17, 2024

stripe_error_message

This is what appears then, fades out, only visible in the DOM as previously noted.

from woocommerce-gateway-stripe.

miklb avatar miklb commented on July 17, 2024

@mikejolley would this be better in a new issue? This particular set of errors isn't an inline validation error, so I'm trying to debug why, but being hidden is also an issue.

from woocommerce-gateway-stripe.

mikejolley avatar mikejolley commented on July 17, 2024

Those nm-s styles look responsible @miklb. I'd guess your theme has added some extra classes to notices and fades them out with CSS or javascript.

from woocommerce-gateway-stripe.

miklb avatar miklb commented on July 17, 2024

@mikejolley thanks for the reply. That was my 1st thought too, but theme author says it doesn't.

I'll dig deeper.

from woocommerce-gateway-stripe.

miklb avatar miklb commented on July 17, 2024

Somewhere I suspect I'm having an issue with testing Stripe, and the plugin is removing the error because it's not processing the CC in the form. I see a lot of .remove() in s4wc.js

I can change the class on my error message from woocommerce-error to woocommerce-error-foo and the error message doesn't disappear. I'm also communicating with the theme developer. I'm assuming a GitHub issue isn't the proper place for support, so if you can direct me to the proper channel, I will proceed there. The original issue seemed to be close to mine, thus why I piggybacked on.

from woocommerce-gateway-stripe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.