Changeset 2988624
- Timestamp:
- 11/03/2023 05:09:34 PM (2 years ago)
- Location:
- product-lister-etsy/trunk
- Files:
-
- 8 edited
-
README.txt (modified) (1 diff)
-
admin/etsy/class-etsy.php (modified) (4 diffs)
-
admin/etsy/lib/class-ced-etsy-request.php (modified) (7 diffs)
-
admin/etsy/lib/vendor/login_with_etsy.php (modified) (2 diffs)
-
admin/partials/ced-etsy-accounts.php (modified) (1 diff)
-
includes/ced-etsy-core-functions.php (modified) (1 diff)
-
includes/class-woocommmerce-etsy-integration-activator.php (modified) (1 diff)
-
product-lister-etsy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
product-lister-etsy/trunk/README.txt
r2985891 r2988624 131 131 == Changelog == 132 132 133 = 2.3.2 = 134 * Add - Improved the stability 135 133 136 = 2.3.1 = 134 * Add - Design Update137 * Add - Design modification 135 138 136 139 = 2.3.0 = -
product-lister-etsy/trunk/admin/etsy/class-etsy.php
r2785078 r2988624 87 87 $query_args = array( 88 88 'grant_type' => 'refresh_token', 89 'client_id' => etsy_request()->client_id,89 'client_id' => ced_etsy_get_auth(), 90 90 'refresh_token' => $refresh_token, 91 91 ); … … 115 115 $query_args = array( 116 116 'grant_type' => 'authorization_code', 117 'client_id' => 'ghvcvauxf2taqidkdx2sw4g4',117 'client_id' => ced_etsy_get_auth(), 118 118 'redirect_uri' => 'https://woodemo.cedcommerce.com/woocommerce/authorize/etsy/authorize.php', 119 119 'code' => $code, … … 142 142 'user_name' => $user_name, 143 143 '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, 146 146 'ced_shop_account_status' => 'Active', 147 147 'token' => $response, … … 193 193 } else { 194 194 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') ) ); 195 200 } 196 201 } -
product-lister-etsy/trunk/admin/etsy/lib/class-ced-etsy-request.php
r2971614 r2988624 11 11 * @var int 12 12 */ 13 public $client_id = 'ghvcvauxf2taqidkdx2sw4g4';13 // public $client_id = ced_etsy_get_auth(); 14 14 /** 15 15 * Base URL for Etsy API. … … 23 23 * @var string 24 24 */ 25 public $client_secret = 'hznh7z8xkb';25 // public $client_secret = ced_etsy_get_auth(); 26 26 27 27 /** … … 48 48 'Content-Type: application/json', 49 49 'Accept: application/json', 50 'x-api-key: ' . $this->client_id,50 'x-api-key: ' . ced_etsy_get_auth(), 51 51 ); 52 52 … … 89 89 'Content-Type: application/json', 90 90 'Accept: application/json', 91 'x-api-key: ' . $this->client_id,91 'x-api-key: ' . ced_etsy_get_auth(), 92 92 ); 93 93 … … 138 138 CURLOPT_HTTPHEADER => array( 139 139 'Content-Type: multipart/form-data', 140 'x-api-key: ' . $this->client_id,140 'x-api-key: ' . ced_etsy_get_auth(), 141 141 'Authorization: Bearer ' . $access_token, 142 142 ), … … 191 191 'Content-Type' => 'application/json', 192 192 'Accept' => 'application/json', 193 'x-api-key' => 'ghvcvauxf2taqidkdx2sw4g4',193 'x-api-key' => ced_etsy_get_auth(), 194 194 'Authorization' => 'Bearer ' . $access_token, 195 195 ); … … 198 198 'Content-Type' => 'application/json', 199 199 'Accept' => 'application/json', 200 'x-api-key' => 'ghvcvauxf2taqidkdx2sw4g4',200 'x-api-key' => ced_etsy_get_auth(), 201 201 ); 202 202 } -
product-lister-etsy/trunk/admin/etsy/lib/vendor/login_with_etsy.php
r2611850 r2988624 24 24 dirname( strtok( $_SERVER['REQUEST_URI'], '?' ) ) . '/login_with_etsy.php'; 25 25 26 $client->client_id = 'ghvcvauxf2taqidkdx2sw4g4';26 $client->client_id = ced_etsy_get_auth(); 27 27 $application_line = __LINE__; 28 $client->client_secret = '27u2kvhfmo'; 29 28 30 29 $client->Initialize(); 31 30 … … 147 146 dirname( strtok( $_SERVER['REQUEST_URI'], '?' ) ) . '/login_with_etsy.php'; 148 147 149 $client->client_id = 'ghvcvauxf2taqidkdx2sw4g4';148 $client->client_id = ced_etsy_get_auth(); 150 149 $application_line = __LINE__; 151 $client->client_secret = '27u2kvhfmo';150 152 151 // $client->scope = 'listings_r'; 153 152 -
product-lister-etsy/trunk/admin/partials/ced-etsy-accounts.php
r2785078 r2988624 360 360 361 361 $scopes = urlencode( implode( ' ', $scopes ) ); 362 $client_id = 'ghvcvauxf2taqidkdx2sw4g4';362 $client_id = ced_etsy_get_auth(); 363 363 $redirect_uri = 'https://woodemo.cedcommerce.com/woocommerce/authorize/etsy/authorize.php'; 364 364 $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 193 193 return isset( $_GET['shop_name'] ) ? sanitize_text_field( $_GET['shop_name'] ) : ''; 194 194 } 195 196 197 if ( !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 58 58 );"; 59 59 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 } 62 65 63 66 } -
product-lister-etsy/trunk/product-lister-etsy.php
r2985886 r2988624 5 5 * Plugin URI: https://cedcommerce.com 6 6 * Description: Product Lister for Etsy allows merchants to list their products on Etsy marketplace. 7 * Version: 2.3. 17 * Version: 2.3.2 8 8 * Author: CedCommerce 9 9 * Author URI: https://cedcommerce.com
Note: See TracChangeset
for help on using the changeset viewer.