Support » Plugin: WooCommerce Square » WooCommerce Square Credit Card Payment Fields Not working

  • Resolved hobeika

    (@hobeika)


    Hi! We are using this plugin and about to launch our e-commerce site, https://epropulsion.westboundyachts.com

    I was placing an order to make sure everything is working properly, it won’t let me fill out my credit card fields to complete the order.

    When I look at the developer’s tools console, I see the following error message:

    Uncaught ReferenceError: WC_Square_Payment_Form_Handler is not defined
    at HTMLDocument.<anonymous> (epropulsion.westboundyachts.com/:31)
    at e (jquery.min.js?ver=3.6.0:2)
    at t (jquery.min.js?ver=3.6.0:2)

    I don’t know what that means, any help?

    Below are the environnment details:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://epropulsion.westboundyachts.com
    Site address (URL): https://epropulsion.westboundyachts.com
    WC Version: 5.9.0
    REST API Version: ✔ 5.9.0
    WC Blocks Version: ✔ 6.1.0
    Action Scheduler Version: ✔ 3.3.0
    WC Admin Version: ✔ 2.8.0
    Log Directory Writable: ✔
    WP Version: 5.8.2
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.25
    PHP Post Max Size: 256 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.1.1l-fips
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.32-35-log
    Max Upload Size: 256 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.9.0
    WC Database Prefix: 33hv_
    Total Database Size: 47.17MB
    Database Data Size: 44.60MB
    Database Index Size: 2.57MB
    33hv_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    33hv_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    33hv_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_actionscheduler_actions: Data: 0.16MB + Index: 0.20MB + Engine InnoDB
    33hv_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    33hv_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    33hv_fusion_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_fusion_form_entries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_fusion_form_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_fusion_form_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    33hv_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    33hv_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_legal_pages: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    33hv_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_lp_popups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_options: Data: 6.48MB + Index: 0.09MB + Engine InnoDB
    33hv_postmeta: Data: 1.52MB + Index: 0.28MB + Engine InnoDB
    33hv_posts: Data: 34.52MB + Index: 0.13MB + Engine InnoDB
    33hv_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    33hv_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    33hv_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    33hv_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    33hv_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    33hv_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    33hv_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    33hv_yoast_indexable: Data: 0.19MB + Index: 0.09MB + Engine InnoDB
    33hv_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    33hv_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    33hv_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    33hv_yoast_seo_links: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 149
    fusion_element: 11
    fusion_tb_section: 1
    fusion_template: 2
    nav_menu_item: 9
    page: 14
    post: 1
    product: 38
    product_variation: 12
    revision: 359
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (13) ###
    
    Gravity Forms: by Gravity Forms – 2.5.15
    Better Search Replace: by Delicious Brains – 1.3.4
    Payment Gateway Based Fees and Discounts for WooCommerce: by Tyche Softwares – 2.6.4
    Flexible Shipping For FedEx: by WP Desk – 1.6.1
    Avada Builder: by ThemeFusion – 3.5
    Avada Core: by ThemeFusion – 5.5
    Google Listings and Ads: by WooCommerce – 1.6.0
    Jetpack: by Automattic – 10.3
    SiteGround Optimizer: by SiteGround – 6.0.5
    WooCommerce Shipping & Tax: by WooCommerce – 1.25.20
    WooCommerce Square: by WooCommerce – 2.7.0
    WooCommerce: by Automattic – 5.9.0
    Yoast SEO: by Team Yoast – 17.6
    
    ### Inactive Plugins (1) ###
    
    WPLegalPages: by WPEka Club – 2.5.3
    
    ### 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)
    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: #8 - /shop/
    Cart: #200 - /cart/
    Checkout: #201 - /checkout/
    My account: #202 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Westbound Yachts
    Version: 1.0.0
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Avada
    Parent Theme Version: 7.5
    Parent Theme Author URL: https://themeforest.net/user/ThemeFusion
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: Avada/woocommerce/cart/cart.php
    Avada/woocommerce/checkout/form-pay.php
    Avada/woocommerce/checkout/review-order.php
    Avada/woocommerce/checkout/thankyou.php
    Avada/woocommerce/loop/loop-start.php
    Avada/woocommerce/single-product/add-to-cart/variable.php
    Avada/woocommerce/single-product/short-description.php
    Avada/woocommerce/single-product/tabs/additional-information.php
    Avada/woocommerce/single-product/tabs/description.php
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    
    ### Action Scheduler ###
    
    Complete: 481
    Oldest: 2021-10-22 15:14:12 -0700
    Newest: 2021-11-17 11:06:47 -0800
    
    Pending: 2
    Oldest: 2021-11-17 12:06:47 -0800
    Newest: 2021-11-24 01:40:35 -0800
    
    ### Status report information ###
    
    Generated at: 2021-11-17 11:20:33 -08:00
    
    • This topic was modified 2 months ago by .

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Brad P. a11n

    (@snaacks)

    Hi @hobeika

    Sorry to see you’re running into some trouble when entering card information into your payment gateway. I appreciate you including your status report as this lets us get a good idea of what is running on the site currently.

    To get started could you please check the connection issues listed in this document to confirm they are not resulting in the error that you’re seeing:

    https://woocommerce.com/document/woocommerce-square/#h-payment-gateway-issues

    Please let us know how that goes!

    Thread Starter hobeika

    (@hobeika)

    I acutally figured it out, I came across a post on this forum from a couple years ago where many other people had the same issue.

    Someone had posted that they were using an optimization plugin to combine javascript files/minify js.

    I changed the settings on my optimizer plugin to not combine javascript files and it’s working now.

    Plugin Support Joash (a11n)

    (@joashrajin)

    Hi @hobeika 👋

    Thanks for the update! We’re glad to hear that you have been able to resolve the matter and appreciate you sharing your findings with us here.

    Please feel free to create a new topic should you face any other issues 👍

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.