Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @ codemilitant,

    From the error message you’ve shared, it looks like the window.wcpayAssets object is undefined. This object is usually defined in the WooPayments plugin, and the error suggests that there might be an issue with the JavaScript files.

    Here are a few steps you can take to resolve this:

    1. Ensure that the WooPayments plugin is up-to-date. If not, please update it.
    2. Clear your website and browser cache. Sometimes, cached versions of JavaScript files can cause issues. If possible, disable WPRocket temporarily and check whether it resolves or not.
    3. Deactivate and reactivate the WooPayments plugin. This can sometimes help to reset the plugin’s settings and fix issues.

    If none of the above steps work, it could be a conflict with another plugin or your current theme. You can check this by deactivating all other plugins except WooCommerce and WooPayments and switching to a default theme like Storefront and see if the issue still occurs. More info: https://woo.com/document/how-to-test-for-conflicts/

    Let us know how that goes for you.

    Thread Starter CodeMilitant

    (@codemilitant)

    I have done everything you suggest, but the javascript is still failing with the same error. The wcpayAssets is not being defined in the plugin. I have everything setup with my Stripe account and followed up with all of their requests to verify my account. There are no errors or warning internally.

    Right now, I have left my site setup with only Woocommerce and Woopayments enabled. All other plugins are disabled.

    Feel free to run some tests on your end to see what could be the issue.

    There are more than a dozen javascripts that are referencing the wcpayAssets in the plugin, however, I cannot find any variable assignment.

    Is the plugin using a javascript to extract the value of wcpayAssets? If so, that’s a foolish and dangerous way to assign this variable.

    There’s clearly an issue, but I’m willing to leave my site plugins deactivated while this gets reviewed and fixed.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    HI @codemilitant,

    Seems like we’ll need to have a closer look. Could you please open a ticket about this from Woo.com > My profile > Support? You may need to create an account before you can access that page.

    Make sure to include a link to this thread and your site’s system status reports (WooCommerce → Status), so we know what has been done already.

    Looking forward to resolving this issue for you.

    Thread Starter CodeMilitant

    (@codemilitant)

    Thank you, I tried to setup a support ticket on Woo.com, but it won’t establish a link to my site. My profile states my store is connected, but it refuses to let me send the email.

    Please forward this on to the team at Woo.com

    Thread Starter CodeMilitant

    (@codemilitant)

    Never mind, I disconnected and reconnected the store. Everything went through and new ticket was created.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @codemilitant,

    I’m glad to hear that you were able to create a new ticket.

    A Happiness Engineer will review your ticket and get back to you as soon as possible. We appreciate your patience as we work to resolve your issue.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘JavaScript fail stopping credit card fields from displaying’ is closed to new replies.