Remove PayPal from Checkoutpage only (in combination with Stripe)
-
Hello @mrclayton,
It’s about the following: I am combining the PayPal Payment Plugin with the Stripe Payment Plugin for various reasons. One of the reasons is that PayPal is not compatible with the block-based checkout, which is why I would like to remove the PayPal payment section from the checkout page. However, unfortunately, this “checkbox” seems to recognize the two payment providers (PayPal and Stripe for credit cards) as a single object, at least I cannot hide the PayPal payment option with CSS. For example, if I apply “display: none;” to the class “.wc-block-components-radio-control-accordion-option”, the payment option from Stripe also disappears. I have not found any other classes with which PayPal could be cleanly removed (button + logo + text + checkbox) from the checkout so that the credit card payment from Stripe is displayed correctly (without a checkbox).
I do not want to completely deactivate the PayPal plugin, as I want to offer PayPal on the shopping cart page, where it also makes sense, as under the PayPal button on the shopping cart page there is still the option “Or Proceed to payment” (in German languange “Weiter zum Bezahlen”), which then leads to the checkout page where I really only want to offer the credit card option from Stripe.
Is there a possibility to remove the PayPal payment option with PHP or other code? I couldn’t find anything.
Thank you for a response,
Albarosa
- The topic ‘Remove PayPal from Checkoutpage only (in combination with Stripe)’ is closed to new replies.