woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 48 forks source link

Pay Later option doesn't disable #2788

Closed isaacetor closed 1 week ago

isaacetor commented 1 week ago

Describe the Bug

I tried disabling the pay later option on my website, but after saving the option still remains active and doesn't disable.

To Reproduce

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to …'
  4. See error

Screenshots

Expected Behavior

Actual Behavior

Environment

Additional Details

System status ``` ```
SydeKrystian commented 1 week ago

Hello @isaacetor

Normally, you should be able to disable the “Pay Later” messaging in the cart and checkout by using the Pay Later configurator.

Here’s a reference screenshot showing how to adjust these settings: Pay Later Configurator Screenshot.

However, some users have reported that the configurator doesn’t always save settings as expected. If this is the case for you, a workaround would be to enable the legacy Pay Later configurator by adding a filter.

You can add the following code:

add_filter('woocommerce_paypal_payments_checkout_messages_renderer_hook', function () {     return 'ppcp_start_button_wrapper_ppcp_gateway'; 
});

You can use a plugin like Code Snippets to easily apply this filter.

If you need further assistance we kindly ask that you reach out directly to our support team.

When you contact our support team, please include a copy of your WooComnmerce system report. This will help us get to the bottom of your issue more quickly.

We'll be closing this GitHub issue for now. However, once you reach out to our support team, rest assured they'll be ready to assist you with your concerns. Thank you for your understanding!

Best Regards, Krystian