Support » Plugin: WooCommerce Stripe Payment Gateway » Error messages not showing on checkout when using Stripe

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Joey – a11n

    (@jricketts4)

    Hi @antonynz – can you paste your system status report? (WP Dashboard > WooCommerce > Status > ‘Get system report’)

    Thanks! – Joey

    Thread Starter Antony Booker

    (@antonynz)

    Sure, here is the report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): http://127.0.0.1/wootest
    Site address (URL): http://127.0.0.1/wootest
    WC Version: 4.2.2
    REST API Version: ✔ 1.0.8
    WC Blocks Version: ✔ 2.5.16
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 1.2.4
    Log Directory Writable: ✔
    WP Version: 5.4.2
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.27 (Win64) OpenSSL/1.0.2l PHP/7.2.3
    PHP Version: 7.2.3
    PHP Post Max Size: 8 GB
    PHP Time Limit: 36000
    PHP Max Input Vars: 100000
    cURL Version: 7.57.0
    OpenSSL/1.1.0g
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.19
    Max Upload Size: 4 GB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 4.2.2
    WC Database Prefix: wp_
    Total Database Size: 3.69MB
    Database Data Size: 2.32MB
    Database Index Size: 1.37MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 1.50MB + Index: 0.03MB + Engine InnoDB
    wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 1
    page: 6
    post: 2
    product: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ✔
    
    ### Active Plugins (2) ###
    
    WooCommerce Stripe Gateway: by WooCommerce – 4.5.0
    WooCommerce: by Automattic – 4.2.2
    
    ### Inactive Plugins (0) ###
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #7 - /shop/
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: #10 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Twenty Twenty
    Version: 1.2 (update to version 1.4 is available)
    Author URL: https://wordpress.org/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 3
    Oldest: 2020-06-25 04:28:25 +0000
    Newest: 2020-06-25 04:35:04 +0000
    
    

    I have the same problem using an Elementor theme. What can we do?

    You can easily see it on my site https://focusme.com/get-it-now/

    When you use a card number such as 4000 0000 0000 0002 (will always decline) and expiry 12/20 CVC 123

    • This reply was modified 2 years, 1 month ago by mrfm.

    My dev solved it by updating /wp-content/plugins/woocommerce-gateway-stripe/assets/js/stripe.js

    Here is the updated file: https://gofile.io/d/2RdIkf

    He told me:

    “The element class was not targeting properly.
    I target errorContainer to exact element $(‘#wc-stripe-cc-form’).find( ‘.stripe-source-errors’ )
    error message showing was default, Set error message to stripe error message.”

    Hope this helps someone and the fix can be included in the plugin?

    Thread Starter Antony Booker

    (@antonynz)

    My dev solved it by updating /wp-content/plugins/woocommerce-gateway-stripe/assets/js/stripe.js

    I’ve had a look at the code but it’s for a separate issue. I’m not sure why those changes would have fixed the issue you were having as the errors are already showing within the stripe-source-errors field. You may need to provide more details in a separate thread.

    This thread is for the default WooCommerce checkout field errors not being displayed.

    Plugin Support Doug – a11n

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @antonynz

    I have been able to replicate this on the twentytwenty theme with only the WooCommerce and the WooCommerce Stripe Payment Gateway plugins active.

    I’ve just gone through this using the decline card that @mrfm mentioned using Twenty Twenty and the default WooCommerce error messages are shown.

    Here is a screencast gif showing this –

    https://d.pr/i/97r3F6

    Can you update everything, including twentytwenty and try again, please? Also, does this still happen if you change to our default Storefront theme?

    Thanks,

    Thread Starter Antony Booker

    (@antonynz)

    Thanks for looking into that further. I hadn’t tested it with the credit card details filled in so it was failing the initial gateway javascript validation.

    It seems to occur when a CC field is left blank, the validation error then outputs to the “stripe-source-errors” div beneath the card fields. Using a test card on live mode also outputted the errors to beneath the CC form so I had assumed all errors were outputted there.

    Perhaps this issue doesn’t have as great of an impact as originally thought. Whilst it could help to avoid confusion by having all errors outputted to the same place for consistency, I’m ok with marking this as solved.

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