Changeset 2421179
- Timestamp:
- 11/19/2020 12:24:14 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wpmerchant/trunk/admin/class-wpmerchant-admin.php
r1713912 r2421179 965 965 966 966 $siteURL = urlencode(get_site_url().'/wp-admin/admin.php?page=wpmerchant-settings'); 967 $stripeLivePublicKey = get_option('wpmerchant_stripe_live_public_key');967 /*$stripeLivePublicKey = get_option('wpmerchant_stripe_live_public_key'); 968 968 $stripeLiveSecretKey = get_option('wpmerchant_stripe_live_secret_key'); 969 969 $stripeTestPublicKey = get_option('wpmerchant_stripe_test_public_key'); … … 987 987 $args 988 988 ); 989 } 989 }*/ 990 990 /*if($stripeLivePublicKey && $stripeLiveSecretKey){ 991 991 add_settings_field( … … 1025 1025 $args = array ( 1026 1026 'type' => 'input', 1027 'subtype' => ' hidden',1027 'subtype' => 'text', 1028 1028 'id' => $this->plugin_name.'_stripe_live_secret_key', 1029 1029 'name' => $this->plugin_name.'_stripe_live_secret_key', … … 1034 1034 add_settings_field( 1035 1035 'wpmerchant_stripe_live_secret_key', 1036 ' ',1036 'Live Secret API Key', 1037 1037 array( $this, 'wpmerchant_render_settings_field' ), 1038 1038 $this->plugin_name.'_stripe_settings', … … 1043 1043 $args = array ( 1044 1044 'type' => 'input', 1045 'subtype' => ' hidden',1045 'subtype' => 'text', 1046 1046 'id' => $this->plugin_name.'_stripe_live_public_key', 1047 1047 'name' => $this->plugin_name.'_stripe_live_public_key', … … 1052 1052 add_settings_field( 1053 1053 'wpmerchant_stripe_live_public_key', 1054 ' ',1054 'Live Public API Key', 1055 1055 array( $this, 'wpmerchant_render_settings_field' ), 1056 1056 $this->plugin_name.'_stripe_settings', … … 1096 1096 $args = array ( 1097 1097 'type' => 'input', 1098 'subtype' => ' hidden',1098 'subtype' => 'text', 1099 1099 'id' => $this->plugin_name.'_stripe_test_secret_key', 1100 1100 'name' => $this->plugin_name.'_stripe_test_secret_key', … … 1105 1105 add_settings_field( 1106 1106 'wpmerchant_stripe_test_secret_key', 1107 ' ',1107 'Test Secret API Key', 1108 1108 array( $this, 'wpmerchant_render_settings_field' ), 1109 1109 $this->plugin_name.'_stripe_settings', … … 1114 1114 $args = array ( 1115 1115 'type' => 'input', 1116 'subtype' => ' hidden',1116 'subtype' => 'text', 1117 1117 'id' => $this->plugin_name.'_stripe_test_public_key', 1118 1118 'name' => $this->plugin_name.'_stripe_test_public_key', … … 1123 1123 add_settings_field( 1124 1124 'wpmerchant_stripe_test_public_key', 1125 ' ',1125 'Test Public API Key', 1126 1126 array( $this, 'wpmerchant_render_settings_field' ), 1127 1127 $this->plugin_name.'_stripe_settings', … … 1765 1765 $output = $input; 1766 1766 } else { 1767 add_settings_error( $this->plugin_name.'_stripe_live_secret_key', 'invalid-api-key', __( 'Make sure you Connect to Stripe.', $this->plugin_name ) );1767 add_settings_error( $this->plugin_name.'_stripe_live_secret_key', 'invalid-api-key', __( 'Make sure you add your API Keys to connect to Stripe.', $this->plugin_name ) ); 1768 1768 } 1769 1769 return $output;
Note: See TracChangeset
for help on using the changeset viewer.