1.6.5 Breaks compatibility with WooCommerce PayPal Checkout Gateway
-
Since 1.6.5, if you use the old WooCommerce PayPal Checkout Gateway plugin alongside it, when selecting the PayPal option for the old plugin you now see 2 buttons on the checkout page (Place Order, and underneath it the PayPal button)
This behaviour is resolved either by rolling back or disabling this new PayPal plugin.Repro Steps
Install both this and WooCommerce PayPal Checkout Gateway plugins
In theme editor functions, unset the new plugin (I’ve had to do this as I have another ongoing issue and using the old one until it is resolved, but need to handle refunds made for purchases through the new PayPal plugin)
Add something to cart, go to checkout.
Image: https://ibb.co/FgjGGfw//Old Paypal gateway becoming out of support March 1 2022 - Want to leave active for refunds but prevent any new people placing purchases through it.. add_filter( 'woocommerce_available_payment_gateways', 'bbloomer_unset_gateway_by_category' ); function bbloomer_unset_gateway_by_category( $available_gateways ) { if ( ! is_checkout() ) return $available_gateways; //unset( $available_gateways['ppec_paypal'] ); //Old PayPal Gateway unset( $available_gateways['ppcp-gateway'] ); //New PayPal Gateway return $available_gateways; }
Thank you
- The topic ‘1.6.5 Breaks compatibility with WooCommerce PayPal Checkout Gateway’ is closed to new replies.