mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
do not show enable button on start screen
This commit is contained in:
parent
16ad8c9cd1
commit
3281043bc2
1 changed files with 3 additions and 1 deletions
|
@ -165,7 +165,9 @@ class PayPalGateway extends \WC_Payment_Gateway {
|
|||
'type' => 'ppcp',
|
||||
),
|
||||
);
|
||||
if ( $this->is_credit_card_tab() ) {
|
||||
|
||||
$should_show_enabled_checkbox = ! $this->is_credit_card_tab() && ( $this->config->has( 'merchant_email' ) && $this->config->get( 'merchant_email' ) );
|
||||
if ( ! $should_show_enabled_checkbox ) {
|
||||
unset( $this->form_fields['enabled'] );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue