• Resolved delirii

    (@delirii)


    Hi! I installed this plugin and used auto setup (with my login in Paypal). Then tried to buy test product but paypal button doesn’t appear on the checkout page. I can choose Paypal as payment gateway but cannot pay.
    I disabled all plugins except Woocommerce and WooCommerce PayPal Checkout Payment Gateway, switched theme to Storefront but still do not see the button.
    What can I do else?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Adam Heckler

    (@adamkheckler)

    Hmm, that’s odd.

    First of all, could you please send me a copy of your site’s system status report? You can find it under WooCommerce > Status in the dashboard. Click “Get system report” and then the “Copy for support” button. Once you’ve done that, paste it into your reply.

    Second, are there any JavaScript errors in your browser’s console when this happens? You can find guidance for checking this here, if you need it:

    https://en.support.wordpress.com/browser-issues/advanced-browser-troubleshooting/#javascript-errors

    Note that you’ll need to have the console open before proceeding to checkout to be sure to catch all the relevant errors.

    Thanks!

    Hi @adamkheckler ,

    I’m experiencing something similar… though unclear if it’s the same cause. The buttons are not showing on the single product page.

    I’m seeing “Uncaught TypeError: paypal is undefined” in my console, here’s a screenshot:
    https://share.getcloudapp.com/RBu4mmdd

    This appears to be the line in the source where the paypal variable is defined.

    If I enable the legacy checkout JS by filtering

    
    add_filter( 'woocommerce_paypal_express_checkout_use_legacy_checkout_js', '__return_true' );
    

    The paypal variable is defined and the button appears.

    <insert debugging time>

    In my case, the PayPal Checkout SDK script was not loading! The reason for this is that my dev sites have a time attribute added to all scripts/styles to prevent caching while I am working.

    @delirii as Adam mentioned, you need to check your browser console. You can also try to view source and look for the PayPal SDK script… looks like this:
    https://share.getcloudapp.com/rRukOO8j

    And then click on it. In my case, I saw this error notice which told me it wasn’t loading and why:

    throw new Error(“SDK Validation error: ‘Disallowed query param: time'” );

    /* Original Error:

    Disallowed query param: time (debug id: 12b71fcb72246)

    */

    Good luck!

    Thread Starter delirii

    (@delirii)

    Thanks for replies! I found what caused the error. This plugin doesn’t support Georgian lari (our local currency). When I changed shop’s currency to euro button has appeared.

    And even after that Paypal returns me an error “Sorry, something went wrong. Please try again”. I tried EUR, USD and Russian rubles, the result is the same.

    Is it possible to do something with this? How to enable lari? How to fix error?

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hey @delirii,

    We’re making progress, but still aren’t there yet. Could you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here.

    Thanks!

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hi @delirii,

    Since we haven’t heard from you in a while, we’re hoping that means you were able to get this resolved. I’m going to close this thread out now.

    If you’re still having trouble, please open up a new topic and we’ll be happy to help out.

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Button doesn’t appear’ is closed to new replies.