Remove admin notice saying that Pay Later is disabled because of vaulting

We're now displaying this message on each Pay Later label when vaulting is enabled. Also, this message persists when vaulting is toggled, while the labels are updated dynamically. Removing this notice because of these.
This commit is contained in:
Danae Millan 2021-11-20 14:42:09 -03:00
parent a338e727fd
commit 004c7f7d58

View file

@ -124,15 +124,6 @@ class SettingsRenderer {
$messages = array();
if ( $this->can_display_vaulting_admin_message() && $this->paypal_vaulting_is_enabled() ) {
$pay_later_messages_or_vaulting_text = __(
"You have PayPal vaulting enabled, that's why Pay Later Messaging options are unavailable now. You cannot use both features at the same time.",
'woocommerce-paypal-payments'
);
$messages[] = new Message( $pay_later_messages_or_vaulting_text, 'warning' );
}
//phpcs:disable WordPress.Security.NonceVerification.Recommended
//phpcs:disable WordPress.Security.NonceVerification.Missing
if ( ! isset( $_GET['ppcp-onboarding-error'] ) || ! empty( $_POST ) ) {