From 8f45fa1cceeceb85af9c16d919a762dac5d439d5 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Thu, 11 Aug 2022 14:17:48 +0400 Subject: [PATCH] Create setting to enable tracking --- modules/ppcp-wc-gateway/services.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index a9e8f44a0..4cb47cd78 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -861,6 +861,19 @@ return array( 'requirements' => array(), 'gateway' => 'paypal', ), + 'tracking_enabled' => array( + 'title' => __( 'Tracking', 'woocommerce-paypal-payments' ), + 'type' => 'checkbox', + 'desc_tip' => true, + 'label' => __( 'Enable tracking', 'woocommerce-paypal-payments' ), + 'description' => __( 'Enable tracking', 'woocommerce-paypal-payments' ), + 'default' => false, + 'screens' => array( + State::STATE_ONBOARDED, + ), + 'requirements' => array(), + 'gateway' => array( 'paypal' ), + ), // General button styles. 'button_style_heading' => array(