Plugin Directory

Changeset 2988624


Ignore:
Timestamp:
11/03/2023 05:09:34 PM (2 years ago)
Author:
cedcommerce
Message:

update 2.3.2

Location:
product-lister-etsy/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • product-lister-etsy/trunk/README.txt

    r2985891 r2988624  
    131131== Changelog ==
    132132
     133= 2.3.2 =
     134* Add - Improved the stability
     135
    133136= 2.3.1 =
    134 * Add - Design Update
     137* Add - Design modification
    135138
    136139= 2.3.0 =
  • product-lister-etsy/trunk/admin/etsy/class-etsy.php

    r2785078 r2988624  
    8787            $query_args = array(
    8888                'grant_type'    => 'refresh_token',
    89                 'client_id'     => etsy_request()->client_id,
     89                'client_id'     => ced_etsy_get_auth(),
    9090                'refresh_token' => $refresh_token,
    9191            );
     
    115115            $query_args = array(
    116116                'grant_type'    => 'authorization_code',
    117                 'client_id'     => 'ghvcvauxf2taqidkdx2sw4g4',
     117                'client_id'     => ced_etsy_get_auth(),
    118118                'redirect_uri'  => 'https://woodemo.cedcommerce.com/woocommerce/authorize/etsy/authorize.php',
    119119                'code'          => $code,
     
    142142                            'user_name'               => $user_name,
    143143                            'shop_id'                 => $shop_id,
    144                             'ced_etsy_keystring'      => etsy_request()->client_id,
    145                             'ced_etsy_shared_string'  => etsy_request()->client_secret,
     144                            'ced_etsy_keystring'      => ced_etsy_get_auth(),
     145                            // 'ced_etsy_shared_string'  => etsy_request()->client_secret,
    146146                            'ced_shop_account_status' => 'Active',
    147147                            'token'                   => $response,
     
    193193                } else {
    194194                    wp_clear_scheduled_hook( 'ced_etsy_auto_submit_shipment' );
     195                }
     196
     197                # Auth info
     198                if (!get_option('ced_etsy_auth_info', '' ) ) {
     199                    update_option( 'ced_etsy_auth_info', array( 'scrt' => 'LA1tU+0AQ7PNGjcMmeSvVjCabqB9Lcqt', 'ky' => base64_encode('Q2VkRXRzeUBXb29AIyQlXiYqS2V5') ) );
    195200                }
    196201            }
  • product-lister-etsy/trunk/admin/etsy/lib/class-ced-etsy-request.php

    r2971614 r2988624  
    1111         * @var int
    1212         */
    13         public $client_id = 'ghvcvauxf2taqidkdx2sw4g4';
     13        // public $client_id = ced_etsy_get_auth();
    1414        /**
    1515         * Base URL for Etsy API.
     
    2323         * @var string
    2424         */
    25         public $client_secret = 'hznh7z8xkb';
     25        // public $client_secret = ced_etsy_get_auth();
    2626
    2727        /**
     
    4848                'Content-Type: application/json',
    4949                'Accept: application/json',
    50                 'x-api-key: ' . $this->client_id,
     50                'x-api-key: ' . ced_etsy_get_auth(),
    5151            );
    5252
     
    8989                'Content-Type: application/json',
    9090                'Accept: application/json',
    91                 'x-api-key: ' . $this->client_id,
     91                'x-api-key: ' . ced_etsy_get_auth(),
    9292            );
    9393
     
    138138                    CURLOPT_HTTPHEADER     => array(
    139139                        'Content-Type: multipart/form-data',
    140                         'x-api-key: ' . $this->client_id,
     140                        'x-api-key: ' . ced_etsy_get_auth(),
    141141                        'Authorization: Bearer ' . $access_token,
    142142                    ),
     
    191191                    'Content-Type'  => 'application/json',
    192192                    'Accept'        => 'application/json',
    193                     'x-api-key'     => 'ghvcvauxf2taqidkdx2sw4g4',
     193                    'x-api-key'     => ced_etsy_get_auth(),
    194194                    'Authorization' => 'Bearer ' . $access_token,
    195195                );
     
    198198                    'Content-Type' => 'application/json',
    199199                    'Accept'       => 'application/json',
    200                     'x-api-key'    => 'ghvcvauxf2taqidkdx2sw4g4',
     200                    'x-api-key'    => ced_etsy_get_auth(),
    201201                );
    202202            }
  • product-lister-etsy/trunk/admin/etsy/lib/vendor/login_with_etsy.php

    r2611850 r2988624  
    2424    dirname( strtok( $_SERVER['REQUEST_URI'], '?' ) ) . '/login_with_etsy.php';
    2525
    26     $client->client_id     = 'ghvcvauxf2taqidkdx2sw4g4';
     26    $client->client_id     = ced_etsy_get_auth();
    2727    $application_line      = __LINE__;
    28     $client->client_secret = '27u2kvhfmo';
    29 
     28   
    3029    $client->Initialize();
    3130
     
    147146    dirname( strtok( $_SERVER['REQUEST_URI'], '?' ) ) . '/login_with_etsy.php';
    148147
    149     $client->client_id     = 'ghvcvauxf2taqidkdx2sw4g4';
     148    $client->client_id     = ced_etsy_get_auth();
    150149    $application_line      = __LINE__;
    151     $client->client_secret = '27u2kvhfmo';
     150   
    152151    // $client->scope = 'listings_r';
    153152
  • product-lister-etsy/trunk/admin/partials/ced-etsy-accounts.php

    r2785078 r2988624  
    360360
    361361    $scopes       = urlencode( implode( ' ', $scopes ) );
    362     $client_id    = 'ghvcvauxf2taqidkdx2sw4g4';
     362    $client_id    = ced_etsy_get_auth();
    363363    $redirect_uri = 'https://woodemo.cedcommerce.com/woocommerce/authorize/etsy/authorize.php';
    364364    $shop_name    = isset( $_POST['ced_etsy_shop_name'] ) ? sanitize_text_field( $_POST['ced_etsy_shop_name'] ) : '';
  • product-lister-etsy/trunk/includes/ced-etsy-core-functions.php

    r2785078 r2988624  
    193193    return isset( $_GET['shop_name'] ) ? sanitize_text_field( $_GET['shop_name'] ) : '';
    194194}
     195
     196
     197if ( !function_exists( 'ced_etsy_get_auth' ) ) {
     198    function ced_etsy_get_auth() {
     199        $infrm = get_option('ced_etsy_auth_info', array());
     200        return openssl_decrypt( $infrm['scrt'], 'AES-128-CTR', $infrm['ky'] );
     201    }
     202}
  • product-lister-etsy/trunk/includes/class-woocommmerce-etsy-integration-activator.php

    r2736082 r2988624  
    5858);";
    5959        dbDelta( $create_profile_table );
    60         update_option( 'ced_client_id', 'ghvcvauxf2taqidkdx2sw4g4' );
    61         update_option( 'ced_client_secret', '27u2kvhfmo' );
     60       
     61        # Auth info
     62        if (!get_option('ced_etsy_auth_info', '' ) ) {
     63            update_option( 'ced_etsy_auth_info', array( 'scrt' => 'LA1tU+0AQ7PNGjcMmeSvVjCabqB9Lcqt', 'ky' => base64_encode('Q2VkRXRzeUBXb29AIyQlXiYqS2V5') ) );
     64        }
    6265
    6366    }
  • product-lister-etsy/trunk/product-lister-etsy.php

    r2985886 r2988624  
    55 * Plugin URI:        https://cedcommerce.com
    66 * Description:       Product Lister for Etsy allows merchants to list their products on Etsy marketplace.
    7  * Version:           2.3.1
     7 * Version:           2.3.2
    88 * Author:            CedCommerce
    99 * Author URI:        https://cedcommerce.com
Note: See TracChangeset for help on using the changeset viewer.