• Resolved James Hunt

    (@bonkerz)


    On my checkout, I have Stripe and PayPal setup.

    The normal WooCommerce operations is that if a user doesn’t enter one of the billing details an error is shown at the top of the page i.e. “Billing ZIP is a required field.”

    The PayPal plugin does this just fine.

    However the Stripe plugin doesn’t notify on error fields at all. It shows nothing.

    The plugin is taking payments, just not alerting users to error fields.

    I have:

    • Checked browser Console – there are four of these errors – “Refused to execute a script because its hash, its nonce, or ‘unsafe-inline’ does not appear in the script-src directive of the Content Security Policy.” – is that normal if not how to fix?
    • PHP Error logs empty
    • WooCommerce status is all good
    • Woocommerce logs not recording anything related to this
    • Hosting on WP Engine with cache enabled, which I have cleared, but I wouldn’t think thats the issue
    • What else could I try to diagnose this problem? What could be causing it?

      Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter James Hunt

    (@bonkerz)

    Update: If I put the Stripe plugin in to Test payment mode, the error fields then display! Weird.

    Still don’t work in live mode. Why would that make a difference to error messages?

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey there @bonkerz

    Sorry, we didn’t get a reply to you sooner. Are you still seeing this error?

    Have you enabled the Stripe debug logging to see if anything is logged there on succesful payments?

    > Still don’t work in live mode. Why would that make a difference to error messages?

    I’m unsure, there are checks which run on Live but not Test mode but I haven’t seen the reverse.

    I’ve tried on a few sites, taking them to Live Mode but I haven’t been able to process a payment at all when one of the required fields is missing.

    Do you have any custom code additions which may impact Stripe functionality? I’d love to find out what is causing this for you.

    Thanks,

    Hi there @bonkerz,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error messages not showing on checkout when using Stripe’ is closed to new replies.