Changeset 3382774
- Timestamp:
- 10/22/2025 04:18:12 PM (5 months ago)
- Location:
- float-gateway
- Files:
-
- 47 added
- 3 edited
-
tags/1.1.7 (added)
-
tags/1.1.7/assets (added)
-
tags/1.1.7/assets/css (added)
-
tags/1.1.7/assets/css/float.css (added)
-
tags/1.1.7/assets/images (added)
-
tags/1.1.7/assets/images/Float_Badge_Ruby.svg (added)
-
tags/1.1.7/assets/images/Float_Logo.svg (added)
-
tags/1.1.7/assets/images/float-logo-alt.png (added)
-
tags/1.1.7/assets/images/float-logo.png (added)
-
tags/1.1.7/assets/js (added)
-
tags/1.1.7/assets/js/featherlite.js (added)
-
tags/1.1.7/changelog.txt (added)
-
tags/1.1.7/composer.json (added)
-
tags/1.1.7/composer.lock (added)
-
tags/1.1.7/index.php (added)
-
tags/1.1.7/integrations (added)
-
tags/1.1.7/integrations/blocks (added)
-
tags/1.1.7/integrations/blocks/class-wc-float-payments-blocks.php (added)
-
tags/1.1.7/integrations/blocks/frontend (added)
-
tags/1.1.7/integrations/blocks/frontend/blocks.asset.php (added)
-
tags/1.1.7/integrations/blocks/frontend/blocks.js (added)
-
tags/1.1.7/readme.md (added)
-
tags/1.1.7/readme.txt (added)
-
tags/1.1.7/src (added)
-
tags/1.1.7/src/Plugin.php (added)
-
tags/1.1.7/src/frontend (added)
-
tags/1.1.7/src/frontend/FloatOnArchive.php (added)
-
tags/1.1.7/src/frontend/FloatOnCart.php (added)
-
tags/1.1.7/src/frontend/FloatOnSidebar.php (added)
-
tags/1.1.7/src/frontend/FloatShortcode.php (added)
-
tags/1.1.7/src/frontend/FloatUI.php (added)
-
tags/1.1.7/src/logger (added)
-
tags/1.1.7/src/logger/FloatLogger.php (added)
-
tags/1.1.7/src/logger/WordPressLogger.php (added)
-
tags/1.1.7/vendor (added)
-
tags/1.1.7/vendor/autoload.php (added)
-
tags/1.1.7/vendor/composer (added)
-
tags/1.1.7/vendor/composer/ClassLoader.php (added)
-
tags/1.1.7/vendor/composer/InstalledVersions.php (added)
-
tags/1.1.7/vendor/composer/LICENSE (added)
-
tags/1.1.7/vendor/composer/autoload_classmap.php (added)
-
tags/1.1.7/vendor/composer/autoload_namespaces.php (added)
-
tags/1.1.7/vendor/composer/autoload_psr4.php (added)
-
tags/1.1.7/vendor/composer/autoload_real.php (added)
-
tags/1.1.7/vendor/composer/autoload_static.php (added)
-
tags/1.1.7/vendor/composer/installed.json (added)
-
tags/1.1.7/vendor/composer/installed.php (added)
-
trunk/index.php (modified) (4 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
float-gateway/trunk/index.php
r3344755 r3382774 6 6 * Author: © FLOAT TECHNOLOGIES (PTY) LTD 7 7 * Author URI: http://float.co.za 8 * Version: 1.1. 78 * Version: 1.1.8 9 9 */ 10 10 … … 20 20 21 21 22 define('WC_FLOAT_VER', '1.1. 7');22 define('WC_FLOAT_VER', '1.1.8'); 23 23 define('WC_FLOAT_PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__))); 24 24 … … 623 623 624 624 $float_debug = $this->get_option('float_debug'); 625 $response = wp_remote_post($uri, $args); 626 if (is_wp_error($response)) { 627 $error_message = $response->get_error_message(); 625 626 $request = wp_remote_post($uri, $args); 627 if (is_wp_error($request)) { 628 $error_message = $request->get_error_message(); 628 629 if ($float_debug == 'yes') { 629 630 WordPressLogger::log($error_message); … … 632 633 } 633 634 634 $response = wp_remote_retrieve_body($response); 635 $response = json_decode($response, true); 635 $status_code = wp_remote_retrieve_response_code($request); 636 if ($status_code < 200 || $status_code >= 300) { 637 if ($float_debug == 'yes') { 638 WordPressLogger::log('HTTP status: ' . $status_code); 639 } 640 return false; 641 } 642 643 $response_body = wp_remote_retrieve_body($request); 644 $response = json_decode($response_body, true); 645 if ($float_debug == 'yes') { 646 WordPressLogger::log($response); 647 } 636 648 return $response; 649 637 650 } else { 638 651 return false; -
float-gateway/trunk/readme.md
r3344755 r3382774 81 81 1.1.6 - Update to PDP display 82 82 1.1.7 - Updates to checkout handling 83 1.1.8 - Updates to network failure handling -
float-gateway/trunk/readme.txt
r3344755 r3382774 81 81 1.1.6 - Update to PDP display 82 82 1.1.7 - Updates to checkout handling 83 1.1.8 - Updates to network failure handling
Note: See TracChangeset
for help on using the changeset viewer.