Skip to content

Commit

Permalink
Merge pull request #1314 from angelleye/PFW-403
Browse files Browse the repository at this point in the history
API Credentials - Disable browser auto-filler, PFW-403
  • Loading branch information
Drew Angell committed May 27, 2019
2 parents 9c20786 + c8ad0b0 commit da0cf1f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 37 deletions.
8 changes: 4 additions & 4 deletions angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
10 changes: 5 additions & 5 deletions classes/wc-gateway-braintree-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,39 +268,39 @@ 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'),
'type' => 'password',
'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'),
'type' => 'password',
'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'),
'type' => 'password',
'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'),
'type' => 'password',
'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'),
Expand Down
16 changes: 8 additions & 8 deletions classes/wc-gateway-paypal-advanced-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
12 changes: 6 additions & 6 deletions classes/wc-gateway-paypal-express-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,38 +624,38 @@ public function init_form_fields() {
'type' => 'text',
'description' => __('Create sandbox accounts and obtain API credentials from within your <a href="http://developer.paypal.com">PayPal developer account</a>.', '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 <br />or by using <a target="_blank" href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run">this tool</a>.', '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' ),
Expand Down
12 changes: 6 additions & 6 deletions classes/wc-gateway-paypal-pro-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,39 +242,39 @@ function init_form_fields() {
'description' => __('Create sandbox accounts and obtain API credentials from within your
<a href="http://developer.paypal.com">PayPal developer account</a>.', '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'),
'type' => 'text',
'description' => __('Get your live account API credentials from your PayPal account profile <br />or by using
<a target="_blank" href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run">this tool</a>.', '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'),
Expand Down
16 changes: 8 additions & 8 deletions classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
),

Expand All @@ -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(
Expand All @@ -249,29 +249,29 @@ 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'),
'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'),
),
'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' ),
Expand Down

0 comments on commit da0cf1f

Please sign in to comment.