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

    (@daniellaivanova)

    Hello @jan73,

    I noticed that you have already posted a ticket on the subject from your SiteGround user area.

    Could you please refer to that ticket for further updates or questions on the topic?

    Best regards,
    Daniela Ivanova

    I have this problem too.

    With SG Optimizer running you get an error when clicking the paypal button to pay saying:

    ‘Could not retrieve order’

    I’ve had to disable the Optimizer on all my ecommerce sites on my SG hosting.

    Plugin Support daniellaivanova

    (@daniellaivanova)

    Hello @barbeluk1,

    Indeed, there is an incompatibility issue between some of the JavaScript handles used by Woocommerce PayPal and SG optimizer’s JavaScript optimization options.

    We are aware of the issue and it has already been reported here. The Woocommerce developers have already merged the request and a fix should be released with one of the future versions of the plugin (most likely 1.9.3).

    You can add the following filter to your theme’s functions.php file to resolve the issue and use both plugins until it is fixed in a future release:

    add_filter(
    			'sgo_js_minify_exclude',
    			function ( array $scripts ) {
    				$scripts_to_exclude = array( 'ppcp-smart-button', 'ppcp-oxxo', 'ppcp-pay-upon-invoice', 'ppcp-vaulting-myaccount-payments', 'ppcp-gateway-settings', 'ppcp-webhooks-status-page', 'ppcp-tracking' );
    
    				return array_merge( $scripts, $scripts_to_exclude );
    			}
    		);

    Best regards,
    Daniela Ivanova

    Plugin Support daniellaivanova

    (@daniellaivanova)

    The new version of the Woocommerce PayPal Payments plugin was released today (1.9.3).

    There is a fix for the reported issue in the new release of the plugin, so if you are still experiencing the problem – make sure to update the Woocommerce PayPal Payments plugin.

    In case you added the filter provided in my last reply, just remove it prior to updating the plugin.

    If you do not want to update your Woocommerce PayPal Payments plugin yet, make sure to keep the filter until you are ready to update the plugin.

    Best regards,
    Daniela Ivanova

    Thread Starter Jan73

    (@jan73)

    updated the plugin, now it works, thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem between the plugin and PayPal payments’ is closed to new replies.