• Resolved mukhthar

    (@mukhthar)


    Describe the bug
    When a customer uses a declined card for payment, An error message should be there to make aware the customer that the card is declined. When I used a declined card for payment after submission of card its redirected to the checkout page and the error message in cart-error.php was shown.
    Screenshot of Checkout page: https://prntscr.com/lng0vl
    The default error message is shown in /cart page. But customer retries to do the payment unaware of card decline and they are confused about the cart error message.
    Screenshot of cart page:https://prntscr.com/lng0vl
    To Reproduce
    Steps to reproduce the behavior:

    Checkout an order with a declined credit card
    The default cart-error.php error message is shown on the checkout page.
    Navigate to cart page, our expected error message is on cart page.
    Screenshots
    Screenshot of Checkout page: https://prntscr.com/lng0vl
    Screenshot of cart page:https://prntscr.com/lng0vl
    Expected behavior
    The Error message shown on the cart page is expected to be on the checkout page, which will make the customer aware that the card is declined.

    Isolating the problem (mark completed items with an [x]):

    [x ] I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
    [ x] This bug happens with a default WordPress theme active, or Storefront.
    [ x] I can reproduce this bug consistently using the steps above.
    WordPress Environment

    Details
    ### WordPress Environment ###
    Home URL: https://wordpress-151096-474718.cloudwaysapps.com
    Site URL: https://wordpress-151096-474718.cloudwaysapps.com
    WC Version: 3.5.1
    Log Directory Writable: ?
    WP Version: 4.9.8
    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.10 (Debian)
    PHP Version: 7.1.20-1+020180910100430.3+jessie1.gbp17c613 – We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 80 MB
    PHP Time Limit: 8500
    PHP Max Input Vars: 2500
    cURL Version: 7.38.0
    OpenSSL/1.0.1t

    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 80 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    Database
    WC Database Version: 3.4.2
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ?
    Total Database Size: 128.73MB
    Database Data Size: 69.43MB
    Database Index Size: 59.30MB
    wp_woocommerce_sessions: Data: 2.52MB + Index: 0.05MB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_order_items: Data: 1.52MB + Index: 0.45MB
    wp_woocommerce_order_itemmeta: Data: 7.52MB + Index: 9.03MB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    sib_model_contact: Data: 0.02MB + Index: 0.00MB
    sib_model_country: Data: 0.02MB + Index: 0.00MB
    smackuci_events: Data: 0.02MB + Index: 0.00MB
    smackuci_history: Data: 0.02MB + Index: 0.00MB
    wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB
    wp_automatewoo_abandoned_carts: Data: 0.13MB + Index: 0.08MB
    wp_automatewoo_customers: Data: 0.27MB + Index: 0.50MB
    wp_automatewoo_guests: Data: 0.31MB + Index: 0.28MB
    wp_automatewoo_guest_meta: Data: 1.52MB + Index: 1.98MB
    wp_automatewoo_logs: Data: 0.22MB + Index: 0.41MB
    wp_automatewoo_log_meta: Data: 1.52MB + Index: 3.03MB
    wp_automatewoo_queue: Data: 0.02MB + Index: 0.05MB
    wp_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB
    wp_automatewoo_unsubscribes: Data: 0.02MB + Index: 0.06MB
    wp_commentmeta: Data: 0.36MB + Index: 0.36MB
    wp_comments: Data: 6.52MB + Index: 8.08MB
    wp_cp_calculated_fields_form_discount_codes: Data: 0.02MB + Index: 0.00MB
    wp_cp_calculated_fields_form_posts: Data: 0.02MB + Index: 0.00MB
    wp_cp_calculated_fields_form_revision: Data: 0.02MB + Index: 0.00MB
    wp_cp_calculated_fields_form_settings: Data: 0.02MB + Index: 0.00MB
    wp_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB
    wp_duplicator_pro_packages: Data: 0.02MB + Index: 0.02MB
    wp_et_bloom_stats: Data: 0.02MB + Index: 0.00MB
    wp_et_social_stats: Data: 0.02MB + Index: 0.00MB
    wp_ewwwio_images: Data: 0.45MB + Index: 0.45MB
    wp_failed_jobs: Data: 0.02MB + Index: 0.00MB
    wp_formmaker: Data: 0.08MB + Index: 0.00MB
    wp_formmaker_backup: Data: 0.08MB + Index: 0.00MB
    wp_formmaker_blocked: Data: 0.02MB + Index: 0.00MB
    wp_formmaker_display_options: Data: 0.02MB + Index: 0.02MB
    wp_formmaker_groups: Data: 0.02MB + Index: 0.00MB
    wp_formmaker_query: Data: 0.02MB + Index: 0.00MB
    wp_formmaker_sessions: Data: 0.02MB + Index: 0.00MB
    wp_formmaker_submits: Data: 0.45MB + Index: 0.00MB
    wp_formmaker_themes: Data: 0.14MB + Index: 0.00MB
    wp_formmaker_views: Data: 0.02MB + Index: 0.00MB
    wp_hidemysiteSecure: Data: 0.02MB + Index: 0.00MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_mailchimp_carts: Data: 0.19MB + Index: 0.00MB
    wp_options: Data: 1.52MB + Index: 0.08MB
    wp_postmeta: Data: 22.56MB + Index: 27.09MB
    wp_posts: Data: 16.52MB + Index: 1.45MB
    wp_queue: Data: 0.02MB + Index: 0.00MB
    wp_snippets: Data: 0.02MB + Index: 0.00MB
    wp_termmeta: Data: 0.05MB + Index: 0.03MB
    wp_terms: Data: 0.06MB + Index: 0.03MB
    wp_term_relationships: Data: 0.06MB + Index: 0.05MB
    wp_term_taxonomy: Data: 0.06MB + Index: 0.03MB
    wp_ultimate_csv_importer_log_values: Data: 0.02MB + Index: 0.00MB
    wp_ultimate_csv_importer_manageshortcodes: Data: 0.02MB + Index: 0.00MB
    wp_ultimate_csv_importer_shortcodes_statusrel: Data: 0.02MB + Index: 0.00MB
    wp_usermeta: Data: 3.52MB + Index: 5.03MB
    wp_users: Data: 0.19MB + Index: 0.17MB
    wp_wcpdf_invoice_number: Data: 0.11MB + Index: 0.00MB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    wp_yoast_seo_links: Data: 0.06MB + Index: 0.02MB
    wp_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB

    Post Type Counts
    acf: 5
    attachment: 416
    aw_workflow: 4
    custom_css: 3
    customize_changeset: 15
    et_pb_layout: 7
    fmemailverification: 1
    form-maker: 1
    nav_menu_item: 32
    page: 38
    post: 9
    product: 110
    product_variation: 1829
    revision: 617
    shipping_package: 3
    shop_coupon: 81
    shop_order: 4064
    shop_order_refund: 146

    Security
    Secure connection (HTTPS): ?
    Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ?

    Active Plugins (2)
    PayPal for WooCommerce: by Angell EYE – 1.5.3
    WooCommerce: by Automattic – 3.5.1

    Settings
    API Enabled: ?
    Force SSL: ?
    Currency: USD ($)
    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)
    featured (featured-2)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-4 (rated-4-2)
    rated-5 (rated-5)

    WC Pages
    Shop base: #42 – /products-list/
    Cart: #20 – /cart/
    Checkout: #21 – /checkout/
    My account: ? Page ID is set
    but the page does not exist

    Terms and conditions: ? Page not set

    Theme
    Name: Storefront
    Version: 2.3.5
    Author URL: https://woocommerce.com/
    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: –
    `

    </details>

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Hi @mukhthar,

    Thank you very much for taking time and explaining the issue you are having. Can you also let me know which payment gateway you are using? And in the settings of that gateway you have set error type as details or generic?

    Please check that and let me know.
    Thanks!

    • This reply was modified 6 years ago by bcworkz.
    • This reply was modified 6 years ago by bcworkz. Reason: moved from dupe topic
    Thread Starter mukhthar

    (@mukhthar)

    I have activated Braintree (https://prntscr.com/lo16yv)
    and my settings are normal(https://prntscr.com/lo18ob)

    Are you referencing to the braintree settings for the error type as detail/generic??

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Oh so you are using braintree. Do you have logging enabled? and can check error log and see error is being reported there?

    Thread Starter mukhthar

    (@mukhthar)

    I am using Braintree for payment. Logging is enabled and when I use a declined card for payment I am getting an error
    =======================
    INFO Error: Unable to complete transaction. Reason: Processor Declined
    ======================
    Screenshot of log file:https://prntscr.com/lpyf56

    The error message is not showing correctly. It’s not showing the default Declined card error on the checkout page.

    • This reply was modified 5 years, 12 months ago by mukhthar.
    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Hi @mukhthar,

    Thanks for your useful info, I will have our developer look into this and see if they are able to shed some light on this. I will update you here soon.
    Thanks!

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Hi @mukhthar,

    I think we found some issue with that and have added to our backlog, will get this adjusted in our coming update which is going to be released soon.

    Thanks for bringing this to our attention.
    Oliver

    Plugin Contributor angelleye

    (@angelleye)

    This has been fixed and will be included in the next update that we’ll be releasing soon!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error Message for declined card is not showing on checkout page’ is closed to new replies.