• Resolved jcostas81

    (@jcostas81)


    Hi –

    I am not sure if this is the proper place for support on this, but since it has to do with WooCommerce, I thought I’d try. I have the PayPal Powered by Braintree plugin installed and have been using it for awhile. All of a sudden, it is no longer working. I use Braintree to process payments for a separate Donation Plugin and that works fine, so I know there is no issue with the API keys, etc. If it makes any difference, I recently switched from a cloud managed hosting to VPS. I also use Cloudflare for CDN and caching, and I have set my cart and checkout pages to not cache.

    Here is the error I am seeing:

    (index):1 The SSL certificate used to load resources from https://www.paypalobjects.com will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.

    js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

    jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1

    VM273:3 Uncaught ReferenceError: WC_Braintree_Credit_Card_Payment_Form_Handler is not defined
    at HTMLDocument.<anonymous> (<anonymous>:3:47)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)
    at HTMLDocument.s (rocket-loader.min.js:1)
    at p (rocket-loader.min.js:1)
    at t.simulateStateAfterDeferScriptsActivation (rocket-loader.min.js:1)
    at Object.callback (rocket-loader.min.js:1)
    at t.run (rocket-loader.min.js:1)

    Would greatly appreciate some help on this or at least point me in the right direction so I can resolve this. Basically whatever is causing is the issue is causing a ton of issues with how the page loads, and basically no one can buy anything at the moment so its an issue I really need to fix ASAP.

    Thanks

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jcostas81

    (@jcostas81)

    Please help as I can’t figure out how to fix this and am currently unable to sell anything because I can’t process payments….I tried rolling back to an older version but that doesn’t work either. For additional information, if it helps, I am currently using Cloudflare for CDN, caching, etc. but I am not caching this page.

    Plugin Support melinda a11n

    (@melindahelt)

    Automattic Happiness Engineer

    Hi there!

    Often the .js errors are conflicts between your theme or another plugin.

    I’d suggest starting with a plugin and theme conflict test as outlined at https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Thread Starter jcostas81

    (@jcostas81)

    Hi –

    Thanks for the response. I am already using a default theme in twenty seventeen, however I am using a child theme of it. I have been using this child theme since I created my site though and my checkout has always worked fine with it previously.

    I also disbaled all of the plugins I have installed recently; I did not disable any of the plugins that I have been using for a long time and that have always worked just fine along with my woocommerce setup prior to this issue. So I tried to disable the plugins I have installed recently, which were basically just a image optimization plugin (imagify), a backup plugin (updraft), a database cleanup plugin (wp-optimize), and a rollback plugin (wp-rollback). I don’t see how any of those would cause a conflict. However, when I disabled them all, I am still having the issue. I have also experimented with a couple of caching plugins, but I always had my checkout page set to disable…..all of those caching plugins are disabled, yet still having the issue.

    Only other thing I can think of is I moved from managed cloud hosting to a VPS, but I am pretty sure things were working still after that, but I can’t be certain.

    I’ve only noticed this problem recently. I would say it didn’t exist a few weeks ago. Only real changes were the switch in hosting, and my experimentation with the caching plugins. I didn’t make any changes to my theme or design…

    Thread Starter jcostas81

    (@jcostas81)

    So this is basically the error I am seeing now:

    Uncaught ReferenceError: WC_Braintree_Credit_Card_Payment_Form_Handler is not defined
    at HTMLDocument.<anonymous> ((index):861)
    at i (jquery.js:1)
    at Object.fireWith [as resolveWith] (jquery.js:1)
    at Function.ready (jquery.js:1)
    at HTMLDocument.K (jquery.js:1)

    If I investigate the referenced line 861 that is giving me an issue, I see this:

    window.wc_braintree_credit_card_handler = new WC_Braintree_Credit_Card_Payment_Form_Handler( {“id”:”braintree_credit_card”,”id_dasherized”:”braintree-credit-card”,”debug”:false,”type”:”credit_card”,”client_token_nonce”:”b6f3d68f54″,”csc_required”:true,”threeds”:{“enabled”:false,”liability_shift_always_required”:false,”failure_message”:”We cannot process your order with the payment information that you provided. Please use an alternate payment method.”},”hosted_fields_styles”:{“input”:{“font-size”:”1.3em”}},”enabled_card_types”:[“visa”,”master-card”,”american-express”,”discover”,”diners-club”,”maestro”,”jcb”]} );

    So it seems that something in this line is giving off the error….

    Thread Starter jcostas81

    (@jcostas81)

    Can someone please help??

    Plugin Support jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @jcostas81 First, opening multiple threads in multiple forums can result in not so nice consequences from the admins of the forums.

    Next, there seems to be something deferring your JS on checkout, so the checkout itself is broken not just the Braintree plugin:


    Link to image: https://cld.wthms.co/Z9hdcm

    Deferring JS that does dynamic changes in WordPress typically results in broken scripts.

    Thread Starter jcostas81

    (@jcostas81)

    Thank you for the response, this helped me to solve the issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce PayPal Powered by Braintree Not Working’ is closed to new replies.