From c8ad0b059c959feb20d4981a8ebdd59b922c8f93 Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Thu, 9 May 2019 13:55:25 +0530 Subject: [PATCH] API Credentials - Disable browser auto-filler, PFW-403 --- angelleye-includes/angelleye-utility.php | 8 ++++---- classes/wc-gateway-braintree-angelleye.php | 10 +++++----- classes/wc-gateway-paypal-advanced-angelleye.php | 16 ++++++++-------- classes/wc-gateway-paypal-express-angelleye.php | 12 ++++++------ classes/wc-gateway-paypal-pro-angelleye.php | 12 ++++++------ .../wc-gateway-paypal-pro-payflow-angelleye.php | 16 ++++++++-------- 6 files changed, 37 insertions(+), 37 deletions(-) diff --git a/angelleye-includes/angelleye-utility.php b/angelleye-includes/angelleye-utility.php index 624c63853..c18a820cb 100644 --- a/angelleye-includes/angelleye-utility.php +++ b/angelleye-includes/angelleye-utility.php @@ -867,28 +867,28 @@ public static function angelleye_paypal_credit_card_rest_setting_fields() { 'type' => 'password', 'description' => 'Enter your Sandbox PayPal Rest API Client ID', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'rest_secret_id_sandbox' => array( 'title' => __('Sandbox Secret ID', 'paypal-for-woocommerce'), 'type' => 'password', 'description' => __('Enter your Sandbox PayPal Rest API Secret ID.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'rest_client_id' => array( 'title' => __('Live Client ID', 'paypal-for-woocommerce'), 'type' => 'password', 'description' => 'Enter your PayPal Rest API Client ID', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'rest_secret_id' => array( 'title' => __('Live Secret ID', 'paypal-for-woocommerce'), 'type' => 'password', 'description' => __('Enter your PayPal Rest API Secret ID.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'payment_action' => array( 'title' => __('Payment Action', 'paypal-for-woocommerce'), diff --git a/classes/wc-gateway-braintree-angelleye.php b/classes/wc-gateway-braintree-angelleye.php index 14ac2e35c..3e03591ca 100644 --- a/classes/wc-gateway-braintree-angelleye.php +++ b/classes/wc-gateway-braintree-angelleye.php @@ -268,7 +268,7 @@ public function init_form_fields() { 'description' => __('Get your API keys from your Braintree account.', 'paypal-for-woocommerce'), 'default' => '', 'desc_tip' => true, - 'custom_attributes' => array('autocomplete' => 'off'), + 'custom_attributes' => array('autocomplete' => 'new-password'), ), 'sandbox_private_key' => array( 'title' => __('Sandbox Private Key', 'paypal-for-woocommerce'), @@ -276,7 +276,7 @@ public function init_form_fields() { 'description' => __('Get your API keys from your Braintree account.', 'paypal-for-woocommerce'), 'default' => '', 'desc_tip' => true, - 'custom_attributes' => array('autocomplete' => 'off'), + 'custom_attributes' => array('autocomplete' => 'new-password'), ), 'sandbox_merchant_id' => array( 'title' => __('Sandbox Merchant ID', 'paypal-for-woocommerce'), @@ -284,7 +284,7 @@ public function init_form_fields() { 'description' => __('Get your API keys from your Braintree account.', 'paypal-for-woocommerce'), 'default' => '', 'desc_tip' => true, - 'custom_attributes' => array('autocomplete' => 'off'), + 'custom_attributes' => array('autocomplete' => 'new-password'), ), 'public_key' => array( 'title' => __('Live Public Key', 'paypal-for-woocommerce'), @@ -292,7 +292,7 @@ public function init_form_fields() { 'description' => __('Get your API keys from your Braintree account.', 'paypal-for-woocommerce'), 'default' => '', 'desc_tip' => true, - 'custom_attributes' => array('autocomplete' => 'off'), + 'custom_attributes' => array('autocomplete' => 'new-password'), ), 'private_key' => array( 'title' => __('Live Private Key', 'paypal-for-woocommerce'), @@ -300,7 +300,7 @@ public function init_form_fields() { 'description' => __('Get your API keys from your Braintree account.', 'paypal-for-woocommerce'), 'default' => '', 'desc_tip' => true, - 'custom_attributes' => array('autocomplete' => 'off'), + 'custom_attributes' => array('autocomplete' => 'new-password'), ), 'merchant_id' => array( 'title' => __('Live Merchant ID', 'paypal-for-woocommerce'), diff --git a/classes/wc-gateway-paypal-advanced-angelleye.php b/classes/wc-gateway-paypal-advanced-angelleye.php index cca5b80be..912979aae 100644 --- a/classes/wc-gateway-paypal-advanced-angelleye.php +++ b/classes/wc-gateway-paypal-advanced-angelleye.php @@ -776,56 +776,56 @@ public function init_form_fields() { 'type' => 'text', 'description' => __('Enter your PayPal Advanced Partner. If you purchased the account directly from PayPal, use PayPal.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'loginid' => array( 'title' => __('Vendor (Merchant Login)', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => '', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'user' => array( 'title' => __('User (optional)', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => __('If you created a user for API calls in your PayPal (PayFlow) Manager, enter that username here. Otherwise, this should be the same value as Vendor (Merchant Login).', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'password' => array( 'title' => __('Password', 'paypal-for-woocommerce'), 'type' => 'password', 'description' => __('Enter your PayPal Advanced account password.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_resellerid' => array( 'title' => __('Partner', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => __('Enter your PayPal Advanced Partner. If you purchased the account directly from PayPal, use PayPal.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_loginid' => array( 'title' => __('Vendor (Merchant Login)', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => '', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_user' => array( 'title' => __('User (optional)', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => __('If you set up one or more additional users on the account, this value is the ID of the user authorized to process transactions. Otherwise, leave this field blank.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_password' => array( 'title' => __('Password', 'paypal-for-woocommerce'), 'type' => 'password', 'description' => __('Enter your PayPal Advanced account password.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'enable_tokenized_payments' => array( 'title' => __('Enable Tokenized Payments', 'paypal-for-woocommerce'), diff --git a/classes/wc-gateway-paypal-express-angelleye.php b/classes/wc-gateway-paypal-express-angelleye.php index ad430fd57..c7840a6ef 100644 --- a/classes/wc-gateway-paypal-express-angelleye.php +++ b/classes/wc-gateway-paypal-express-angelleye.php @@ -624,38 +624,38 @@ public function init_form_fields() { 'type' => 'text', 'description' => __('Create sandbox accounts and obtain API credentials from within your PayPal developer account.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_api_password' => array( 'title' => __('Sandbox API Password', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_api_signature' => array( 'title' => __('Sandbox API Signature', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'api_username' => array( 'title' => __('Live API User Name', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => __('Get your live account API credentials from your PayPal account profile
or by using this tool.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'api_password' => array( 'title' => __('Live API Password', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'api_signature' => array( 'title' => __('Live API Signature', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'shopping_cart_checkout_page_display' => array( 'title' => __( 'Shopping Cart, Checkout and Product Page Display', 'paypal-for-woocommerce' ), diff --git a/classes/wc-gateway-paypal-pro-angelleye.php b/classes/wc-gateway-paypal-pro-angelleye.php index 1d8755ecc..298aa9db4 100644 --- a/classes/wc-gateway-paypal-pro-angelleye.php +++ b/classes/wc-gateway-paypal-pro-angelleye.php @@ -242,19 +242,19 @@ function init_form_fields() { 'description' => __('Create sandbox accounts and obtain API credentials from within your PayPal developer account.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_api_password' => array( 'title' => __('Sandbox API Password', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_api_signature' => array( 'title' => __('Sandbox API Signature', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'api_username' => array( 'title' => __('Live API Username', 'paypal-for-woocommerce'), @@ -262,19 +262,19 @@ function init_form_fields() { 'description' => __('Get your live account API credentials from your PayPal account profile
or by using this tool.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'api_password' => array( 'title' => __('Live API Password', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'api_signature' => array( 'title' => __('Live API Signature', 'paypal-for-woocommerce'), 'type' => 'password', 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'enable_3dsecure' => array( 'title' => __('3DSecure', 'paypal-for-woocommerce'), diff --git a/classes/wc-gateway-paypal-pro-payflow-angelleye.php b/classes/wc-gateway-paypal-pro-payflow-angelleye.php index 8cf095b98..beab0b867 100644 --- a/classes/wc-gateway-paypal-pro-payflow-angelleye.php +++ b/classes/wc-gateway-paypal-pro-payflow-angelleye.php @@ -218,13 +218,13 @@ function init_form_fields() { 'type' => 'text', 'description' => __('The ID provided to you by the authorized PayPal Reseller who registered you for the Payflow SDK. If you purchased your account directly from PayPal, use PayPal or leave blank.', 'paypal-for-woocommerce'), 'default' => 'PayPal', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'sandbox_paypal_vendor' => array( 'title' => __('Vendor (Merchant Login)', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => __('Your merchant login ID that you created when you registered for the account.', 'paypal-for-woocommerce'), - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), 'default' => 'angelleye' ), @@ -233,14 +233,14 @@ function init_form_fields() { 'type' => 'text', 'description' => __('If you set up one or more additional users on the account, this value is the ID of the user authorized to process transactions. Otherwise, leave this field blank.', 'paypal-for-woocommerce'), - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), 'default' => 'paypalwoocommerce' ), 'sandbox_paypal_password' => array( 'title' => __('Password', 'paypal-for-woocommerce'), 'type' => 'password', 'description' => __('The password that you defined while registering for the account.', 'paypal-for-woocommerce'), - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), 'default' => 'dwG7!Yp*PLY3' ), 'paypal_partner' => array( @@ -249,14 +249,14 @@ function init_form_fields() { 'description' => __('The ID provided to you by the authorized PayPal Reseller who registered you for the Payflow SDK. If you purchased your account directly from PayPal, use PayPal or leave blank.', 'paypal-for-woocommerce'), 'default' => 'PayPal', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'paypal_vendor' => array( 'title' => __('Vendor (Merchant Login)', 'paypal-for-woocommerce'), 'type' => 'text', 'description' => __('Your merchant login ID that you created when you registered for the account.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'paypal_user' => array( 'title' => __('User (optional)', 'paypal-for-woocommerce'), @@ -264,14 +264,14 @@ function init_form_fields() { 'description' => __('If you set up one or more additional users on the account, this value is the ID of the user authorized to process transactions. Otherwise, leave this field blank.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'paypal_password' => array( 'title' => __('Password', 'paypal-for-woocommerce'), 'type' => 'password', 'description' => __('The password that you defined while registering for the account.', 'paypal-for-woocommerce'), 'default' => '', - 'custom_attributes' => array( 'autocomplete' => 'off'), + 'custom_attributes' => array( 'autocomplete' => 'new-password'), ), 'subtotal_mismatch_behavior' => array( 'title' => __( 'Subtotal Mismatch Behavior', 'paypal-for-woocommerce' ),