Plugin Directory

Changeset 2421179


Ignore:
Timestamp:
11/19/2020 12:24:14 AM (5 years ago)
Author:
benshadle
Message:

update tested up to version and the api keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpmerchant/trunk/admin/class-wpmerchant-admin.php

    r1713912 r2421179  
    965965       
    966966        $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');
    968968        $stripeLiveSecretKey = get_option('wpmerchant_stripe_live_secret_key');
    969969        $stripeTestPublicKey = get_option('wpmerchant_stripe_test_public_key');
     
    987987              $args
    988988            );
    989         }
     989        }*/
    990990        /*if($stripeLivePublicKey && $stripeLiveSecretKey){
    991991            add_settings_field(
     
    10251025        $args = array (
    10261026                  'type'      => 'input',
    1027                   'subtype'   => 'hidden',
     1027                  'subtype'   => 'text',
    10281028                  'id'    => $this->plugin_name.'_stripe_live_secret_key',
    10291029                  'name'      => $this->plugin_name.'_stripe_live_secret_key',
     
    10341034        add_settings_field(
    10351035          'wpmerchant_stripe_live_secret_key',
    1036           '',
     1036          'Live Secret API Key',
    10371037          array( $this, 'wpmerchant_render_settings_field' ),
    10381038          $this->plugin_name.'_stripe_settings',
     
    10431043        $args = array (
    10441044                  'type'      => 'input',
    1045                   'subtype'   => 'hidden',
     1045                  'subtype'   => 'text',
    10461046                  'id'    => $this->plugin_name.'_stripe_live_public_key',
    10471047                  'name'      => $this->plugin_name.'_stripe_live_public_key',
     
    10521052        add_settings_field(
    10531053          'wpmerchant_stripe_live_public_key',
    1054           '',
     1054          'Live Public API Key',
    10551055          array( $this, 'wpmerchant_render_settings_field' ),
    10561056          $this->plugin_name.'_stripe_settings',
     
    10961096        $args = array (
    10971097                  'type'      => 'input',
    1098                   'subtype'   => 'hidden',
     1098                  'subtype'   => 'text',
    10991099                  'id'    => $this->plugin_name.'_stripe_test_secret_key',
    11001100                  'name'      => $this->plugin_name.'_stripe_test_secret_key',
     
    11051105        add_settings_field(
    11061106          'wpmerchant_stripe_test_secret_key',
    1107           '',
     1107          'Test Secret API Key',
    11081108          array( $this, 'wpmerchant_render_settings_field' ),
    11091109          $this->plugin_name.'_stripe_settings',
     
    11141114        $args = array (
    11151115                  'type'      => 'input',
    1116                   'subtype'   => 'hidden',
     1116                  'subtype'   => 'text',
    11171117                  'id'    => $this->plugin_name.'_stripe_test_public_key',
    11181118                  'name'      => $this->plugin_name.'_stripe_test_public_key',
     
    11231123        add_settings_field(
    11241124          'wpmerchant_stripe_test_public_key',
    1125           '',
     1125          'Test Public API Key',
    11261126          array( $this, 'wpmerchant_render_settings_field' ),
    11271127          $this->plugin_name.'_stripe_settings',
     
    17651765        $output = $input;
    17661766      } 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 ) );
    17681768      }
    17691769      return $output;
Note: See TracChangeset for help on using the changeset viewer.