Support » Plugin: WooCommerce PayPal Checkout Payment Gateway » Latest version has JS critical error

  • Resolved Duke


    Uncaught TypeError: paypal.getFundingSources is not a function
        at render (wc-gateway-ppec-smart-payment-buttons.js:208)
        at HTMLBodyElement.dispatch (jquery.js:3)
        at HTMLBodyElement.r.handle (jquery.js:3)
        at Object.trigger (jquery.js:3)
        at Object.a.event.trigger (jquery-migrate.min.js:2)
        at HTMLBodyElement.<anonymous> (jquery.js:3)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at a.fn.init.trigger (jquery.js:3)
        at Object.success (checkout.min.js:1)
Viewing 15 replies - 1 through 15 (of 19 total)
  • Don’t know if this is the same issue on my site. But after click on the paypal button on product single page the pop-up windows is disappearing after 1 second and thats it. Going back on version before and working again nice.

    Same here, not showing PayPal buttons at all!

    Thread Starter Duke


    Yep I rolled back too. Will wait for the next update.

    • This reply was modified 1 year, 6 months ago by Duke.

    Me too, on this bug.

    also me!
    and show this Issue

    wc-gateway-ppec-smart-payment-buttons.js?ver=2.0.0:208 Uncaught TypeError: paypal.getFundingSources is not a function
        at render (wc-gateway-ppec-smart-payment-buttons.js?ver=2.0.0:208)
        at wc-gateway-ppec-smart-payment-buttons.js?ver=2.0.0:237
        at wc-gateway-ppec-smart-payment-buttons.js?ver=2.0.0:251
    render @ wc-gateway-ppec-smart-payment-buttons.js?ver=2.0.0:208
    (anonymous) @ wc-gateway-ppec-smart-payment-buttons.js?ver=2.0.0:237
    (anonymous) @ wc-gateway-ppec-smart-payment-buttons.js?ver=2.0.0:251
    Plugin Author mattdallan


    Hey @dukessa ,
    Thanks for opening this ticket.

    It sounds like your store is still loading the old PayPal Javascript checkout.js file and not the new sdk/js; or both at the same time. Is it possible that the checkout.js is still being loaded from a cache or CDN?


    How can I rollback to the older version?

    Farrukh Rasool

    Plugin Author mattdallan


    Hi @faarukh, you can download the previous version (v1.6.21) using this link:

    Thanks @mattdallan 🙂

    @mattdallan I did what you said. After updating von V2:
    – delete server cache
    – delete server op-cache
    – delete cdn cache
    – delete browser cache and firefox and chrome

    But nothing. Again going back to version before.

    Plugin Author mattdallan


    Thanks for the update @fox-didl

    We believe this is being caused by other PayPal extensions loading the older checkout.js file and causing a conflict with our 2.0 changes.

    We’re looking into a possible fix for this now, but in the meantime I would recommend rolling back to 1.6.21 or using the following filter to use the legacy checkout.js:

    add_filter( ‘woocommerce_paypal_express_checkout_use_legacy_checkout_js’, ‘__return_true’ );

    Appreciate your patience

    Plugin Author mattdallan


    We have a pull request which should fix this issue:

    I’ve marked it as critical

    Thread Starter Duke


    Hey @mattdallan, I disable cloudflare and empty all caches when I updated plugins, so that’s not possible.
    Also no other plugin using Paypal.
    Thank you for looking into the issue, will be waiting for the next release to update.



    Hi once I updated to the 2.0 version it made it so no credit cards could be processed even with our gate way too? This is the plugin used and I am using the latest version: WooCommerce Authorize.Net Gateway Version 3.2.6 once I went back to the old Version 1.6.21 of this plugin then it worked like normal again so there is for sure some sort of big bug with it that needs to be fixed. Anytime a person would try to process an order with their credit card on our site (instead of using paypal to process their order) it was saying this message: Error : An error occurred, please try again or try an alternate form of payment.

    Man, I was wondering why orders were so low today. I have seven stores, all with the same issue. :p Thank you very much for the rollback link. All is well again. 🙂

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Latest version has JS critical error’ is closed to new replies.