diff --git a/modules/ppcp-wc-gateway/connection-tab-settings.php b/modules/ppcp-wc-gateway/connection-tab-settings.php index 42e558f8c..f5da1244d 100644 --- a/modules/ppcp-wc-gateway/connection-tab-settings.php +++ b/modules/ppcp-wc-gateway/connection-tab-settings.php @@ -157,7 +157,11 @@ return function ( ContainerInterface $container, array $fields ): array { 'ppcp_disconnect_production' => array( 'title' => __( 'Disconnect from PayPal', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-text', - 'text' => '', + 'text' => sprintf( + '
%1$s
', + esc_html__( 'Status: Connected', 'woocommerce-paypal-payments' ), + esc_html__( 'Disconnect Account', 'woocommerce-paypal-payments' ) + ), 'screens' => array( State::STATE_ONBOARDED, ), @@ -341,7 +345,6 @@ return function ( ContainerInterface $container, array $fields ): array { 'screens' => array( State::STATE_ONBOARDED, ), - 'state_from' => Environment::SANDBOX, 'requirements' => array(), 'gateway' => 'connection', 'description' => __( 'See which features are available.', 'woocommerce-paypal-payments' ), @@ -387,7 +390,6 @@ return function ( ContainerInterface $container, array $fields ): array { 'screens' => array( State::STATE_ONBOARDED, ), - 'state_from' => Environment::SANDBOX, 'requirements' => array(), 'gateway' => 'connection', 'description' => __( 'See which features are available.', 'woocommerce-paypal-payments' ), diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 546699cef..0d6024e4c 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -2170,9 +2170,10 @@ return array( : $enable_dcc_url; return sprintf( - '%1$s %2$s
', + '%1$s %2$s
', $dcc_enabled ? $enabled_status_text : $disabled_status_text, $dcc_enabled ? '' : '', + $dcc_enabled ? '_self' : '_blank', esc_url( $dcc_button_url ), esc_html( $dcc_button_text ) ); @@ -2204,9 +2205,10 @@ return array( : esc_html__( 'Enable Pay Upon Invoice', 'woocommerce-paypal-payments' ); return sprintf( - '%1$s %2$s
', + '%1$s %2$s
', $pui_enabled ? $enabled_status_text : $disabled_status_text, $pui_enabled ? '' : '', + $pui_enabled ? '_self' : '_blank', esc_url( $pui_button_url ), esc_html( $pui_button_text ) );