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

  • Resolved Duke

    (@dukessa)


    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 18 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!

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

    • This reply was modified 1 month, 2 weeks 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

    (@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?

    Hi

    How can I rollback to the older version?

    Regards
    Farrukh Rasool

    Plugin Author mattdallan

    (@mattdallan)

    Hi @faarukh, you can download the previous version (v1.6.21) using this link: https://downloads.wordpress.org/plugin/woocommerce-gateway-paypal-express-checkout.1.6.21.zip

    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

    (@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

    (@mattdallan)

    We have a pull request which should fix this issue: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/pull/740

    I’ve marked it as critical

    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.

    OnlineMarketingHelpers

    (@onlinemarketinghelpers)

    Hi once I updated to the 2.0 version it made it so no credit cards could be processed even with our authorize.net 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 18 total)
  • You must be logged in to reply to this topic.