Changeset 2724990
- Timestamp:
- 05/17/2022 06:38:53 AM (4 years ago)
- Location:
- swipe-for-woocommerce/trunk/libraries/swipego
- Files:
-
- 2 edited
-
admin/class-swipego-admin.php (modified) (1 diff)
-
includes/abstracts/abstract-swipego-client.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
swipe-for-woocommerce/trunk/libraries/swipego/admin/class-swipego-admin.php
r2724952 r2724990 85 85 $is_swipego_plugin_installed = swipego_is_plugin_installed( $swipego_plugin_file ); 86 86 87 $swipego_plugin_download_url = ''; 88 87 89 // If main plugin and Swipe plugin is activated, return settings page URL 88 90 if ( $is_main_plugin_activated && $is_swipego_plugin_activated ) { -
swipe-for-woocommerce/trunk/libraries/swipego/includes/abstracts/abstract-swipego-client.php
r2724952 r2724990 4 4 abstract class Swipego_Client { 5 5 6 const PRODUCTION_URL = 'https://stg-api.swipego.io/api/'; 7 const SANDBOX_URL = 'https://stg-test-api.swipego.io/api/'; 8 9 // const PRODUCTION_URL = 'https://api.swipego.io/api/'; 10 // const SANDBOX_URL = 'https://api-test.swipego.io/api/'; 6 7 const PRODUCTION_URL = 'https://api.swipego.io/api/'; 8 const SANDBOX_URL = 'https://api-test.swipego.io/api/'; 11 9 12 10 protected $access_token = null; … … 255 253 256 254 $encoded_hash = implode( '', array_values( $data ) ); 257 $generated_hash = hash_hmac( 'SHA256', $ encoded_hash, $this->signature_key );255 $generated_hash = hash_hmac( 'SHA256', $this->signature_key . $encoded_hash, $this->signature_key ); 258 256 259 257 return $hash == $generated_hash;
Note: See TracChangeset
for help on using the changeset viewer.