Changeset 3003031
- Timestamp:
- 11/29/2023 03:06:55 AM (2 years ago)
- Location:
- clearpay-gateway-for-woocommerce
- Files:
-
- 46 added
- 1 deleted
- 6 edited
- 1 copied
-
tags/3.7.1 (deleted)
-
tags/3.7.2 (copied) (copied from clearpay-gateway-for-woocommerce/trunk)
-
tags/3.7.2/build (added)
-
tags/3.7.2/build/cart-messaging-block (added)
-
tags/3.7.2/build/cart-messaging-block/block.json (added)
-
tags/3.7.2/build/cart-messaging-block/editor.asset.php (added)
-
tags/3.7.2/build/cart-messaging-block/editor.js (added)
-
tags/3.7.2/build/cart-messaging-block/frontend.asset.php (added)
-
tags/3.7.2/build/cart-messaging-block/frontend.js (added)
-
tags/3.7.2/build/clearpay-admin (added)
-
tags/3.7.2/build/clearpay-admin/index.asset.php (added)
-
tags/3.7.2/build/clearpay-admin/index.js (added)
-
tags/3.7.2/build/clearpay-blocks (added)
-
tags/3.7.2/build/clearpay-blocks/index.asset.php (added)
-
tags/3.7.2/build/clearpay-blocks/index.js (added)
-
tags/3.7.2/build/clearpay-express (added)
-
tags/3.7.2/build/clearpay-express/index.asset.php (added)
-
tags/3.7.2/build/clearpay-express/index.js (added)
-
tags/3.7.2/build/clearpay-page-checkout (added)
-
tags/3.7.2/build/clearpay-page-checkout/index.asset.php (added)
-
tags/3.7.2/build/clearpay-page-checkout/index.js (added)
-
tags/3.7.2/build/product-messaging-block (added)
-
tags/3.7.2/build/product-messaging-block/block.json (added)
-
tags/3.7.2/build/product-messaging-block/index.asset.php (added)
-
tags/3.7.2/build/product-messaging-block/index.js (added)
-
tags/3.7.2/clearpay-gateway-for-woocommerce.php (modified) (9 diffs)
-
tags/3.7.2/readme.txt (modified) (2 diffs)
-
tags/3.7.2/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/build (added)
-
trunk/build/cart-messaging-block (added)
-
trunk/build/cart-messaging-block/block.json (added)
-
trunk/build/cart-messaging-block/editor.asset.php (added)
-
trunk/build/cart-messaging-block/editor.js (added)
-
trunk/build/cart-messaging-block/frontend.asset.php (added)
-
trunk/build/cart-messaging-block/frontend.js (added)
-
trunk/build/clearpay-admin (added)
-
trunk/build/clearpay-admin/index.asset.php (added)
-
trunk/build/clearpay-admin/index.js (added)
-
trunk/build/clearpay-blocks (added)
-
trunk/build/clearpay-blocks/index.asset.php (added)
-
trunk/build/clearpay-blocks/index.js (added)
-
trunk/build/clearpay-express (added)
-
trunk/build/clearpay-express/index.asset.php (added)
-
trunk/build/clearpay-express/index.js (added)
-
trunk/build/clearpay-page-checkout (added)
-
trunk/build/clearpay-page-checkout/index.asset.php (added)
-
trunk/build/clearpay-page-checkout/index.js (added)
-
trunk/build/product-messaging-block (added)
-
trunk/build/product-messaging-block/block.json (added)
-
trunk/build/product-messaging-block/index.asset.php (added)
-
trunk/build/product-messaging-block/index.js (added)
-
trunk/clearpay-gateway-for-woocommerce.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clearpay-gateway-for-woocommerce/tags/3.7.2/clearpay-gateway-for-woocommerce.php
r2993700 r3003031 5 5 * Author: Clearpay 6 6 * Author URI: https://www.clearpay.co.uk/ 7 * Version: 3.7. 17 * Version: 3.7.2 8 8 * Text Domain: woo_clearpay 9 9 * Domain Path: /languages/ 10 10 * WC requires at least: 3.2.6 11 * WC tested up to: 8. 2.111 * WC tested up to: 8.3.1 12 12 * 13 13 * Copyright: (c) 2021 Clearpay … … 47 47 * the value in the comments above. 48 48 */ 49 public static $version = '3.7. 1';49 public static $version = '3.7.2'; 50 50 51 51 /** … … 258 258 259 259 public static function register_js_lib() { 260 if ( ! self::init() ) { return; } 261 260 262 $instance = WC_Gateway_Clearpay::getInstance(); 261 263 $subdomain = $instance->get_api_env() == 'production' ? 'js' : 'js-sandbox'; … … 264 266 265 267 public static function register_common_assets() { 268 if ( ! self::init() ) { return; } 269 266 270 self::register_js_lib(); 267 271 … … 455 459 } 456 460 461 if ( ! self::init() ) { 462 // WooCommerce is not active. 463 return; 464 } 465 457 466 self::register_js_lib(); 458 467 … … 463 472 __DIR__ . '/build/product-messaging-block/block.json', 464 473 array( 465 'editor_script_handles' => [ 'square_marketplace_js' ],466 'view_script_handles' => [ 'square_marketplace_js' ],467 474 'render_callback' => array($instance, 'render_product_messaging_block') 468 475 ) … … 475 482 * to check restricted categories, or fetch the skus and categories for analytics. 476 483 */ 477 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/index.asset.php'); 478 wp_register_script( 'clearpay_cart_messaging', 479 plugins_url('build/cart-messaging-block/index.js', __FILE__), 484 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/frontend.asset.php'); 485 wp_register_script( 486 'clearpay_cart_messaging', 487 plugins_url('build/cart-messaging-block/frontend.js', __FILE__), 480 488 $cart_messaging_asset['dependencies'], 481 $cart_messaging_asset['version'],489 $cart_messaging_asset['version'], 482 490 true 483 491 ); … … 489 497 __DIR__ . '/build/cart-messaging-block/block.json', 490 498 array( 491 'editor_script_handles' => [ 'square_marketplace_js' ],492 'view_script_handles' => [ 'square_marketplace_js' ],493 499 'render_callback' => array($instance, 'render_cart_messaging_block') 494 500 ) 495 501 ); 496 502 } 503 504 public static function plugin_dependencies() { 505 if ( ! function_exists('WC') ) { 506 // show notice if WooCommerce plugin is not active 507 add_action('admin_notices', array(get_called_class(), 'admin_notice_dependency_error')); 508 } 509 } 510 511 public static function admin_notice_dependency_error() { 512 ?> 513 <div class="notice notice-error is-dismissible"> 514 <p><?php _e( 'Clearpay Gateway for WooCommerce requires WooCommerce to be installed and active!', 'woo_clearpay' ); ?></p> 515 </div> 516 <?php 517 } 497 518 } 498 519 … … 502 523 503 524 add_action( 'init', array('Clearpay_Plugin', 'register_blocks') ); 525 add_action( 'plugins_loaded', array('Clearpay_Plugin', 'plugin_dependencies') ); 504 526 add_action( 'plugins_loaded', array('Clearpay_Plugin', 'init'), 10, 0 ); 505 527 add_action( 'upgrader_process_complete', array('Clearpay_Plugin', 'upgrade_complete'), 10, 2 ); -
clearpay-gateway-for-woocommerce/tags/3.7.2/readme.txt
r2993700 r3003031 3 3 Tags: woocommerce, clearpay 4 4 Requires at least: 4.8.3 5 Tested up to: 6. 3.26 Stable tag: 3.7. 15 Tested up to: 6.4.1 6 Stable tag: 3.7.2 7 7 License: GNU Public License 8 8 License URI: https://www.gnu.org/licenses/ … … 40 40 == Changelog == 41 41 42 = 3.7.2 = 43 *Release Date: Wednesday, 29 Nov 2023* 44 45 * Minor bug fixes and performance improvements. 46 * Tested and verified support for WordPress 6.4.1 and WooCommerce 8.3.1. 47 42 48 = 3.7.1 = 43 49 *Release Date: Friday, 10 Nov 2023* -
clearpay-gateway-for-woocommerce/tags/3.7.2/vendor/composer/installed.php
r2993700 r3003031 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 2e415c2e31d0d12db85a87aa2c0ff5d86d0c05a7',6 'reference' => '638cb91d9b55ad8584bae638de96cc5cd3b7c116', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' 2e415c2e31d0d12db85a87aa2c0ff5d86d0c05a7',16 'reference' => '638cb91d9b55ad8584bae638de96cc5cd3b7c116', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
clearpay-gateway-for-woocommerce/trunk/clearpay-gateway-for-woocommerce.php
r2993700 r3003031 5 5 * Author: Clearpay 6 6 * Author URI: https://www.clearpay.co.uk/ 7 * Version: 3.7. 17 * Version: 3.7.2 8 8 * Text Domain: woo_clearpay 9 9 * Domain Path: /languages/ 10 10 * WC requires at least: 3.2.6 11 * WC tested up to: 8. 2.111 * WC tested up to: 8.3.1 12 12 * 13 13 * Copyright: (c) 2021 Clearpay … … 47 47 * the value in the comments above. 48 48 */ 49 public static $version = '3.7. 1';49 public static $version = '3.7.2'; 50 50 51 51 /** … … 258 258 259 259 public static function register_js_lib() { 260 if ( ! self::init() ) { return; } 261 260 262 $instance = WC_Gateway_Clearpay::getInstance(); 261 263 $subdomain = $instance->get_api_env() == 'production' ? 'js' : 'js-sandbox'; … … 264 266 265 267 public static function register_common_assets() { 268 if ( ! self::init() ) { return; } 269 266 270 self::register_js_lib(); 267 271 … … 455 459 } 456 460 461 if ( ! self::init() ) { 462 // WooCommerce is not active. 463 return; 464 } 465 457 466 self::register_js_lib(); 458 467 … … 463 472 __DIR__ . '/build/product-messaging-block/block.json', 464 473 array( 465 'editor_script_handles' => [ 'square_marketplace_js' ],466 'view_script_handles' => [ 'square_marketplace_js' ],467 474 'render_callback' => array($instance, 'render_product_messaging_block') 468 475 ) … … 475 482 * to check restricted categories, or fetch the skus and categories for analytics. 476 483 */ 477 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/index.asset.php'); 478 wp_register_script( 'clearpay_cart_messaging', 479 plugins_url('build/cart-messaging-block/index.js', __FILE__), 484 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/frontend.asset.php'); 485 wp_register_script( 486 'clearpay_cart_messaging', 487 plugins_url('build/cart-messaging-block/frontend.js', __FILE__), 480 488 $cart_messaging_asset['dependencies'], 481 $cart_messaging_asset['version'],489 $cart_messaging_asset['version'], 482 490 true 483 491 ); … … 489 497 __DIR__ . '/build/cart-messaging-block/block.json', 490 498 array( 491 'editor_script_handles' => [ 'square_marketplace_js' ],492 'view_script_handles' => [ 'square_marketplace_js' ],493 499 'render_callback' => array($instance, 'render_cart_messaging_block') 494 500 ) 495 501 ); 496 502 } 503 504 public static function plugin_dependencies() { 505 if ( ! function_exists('WC') ) { 506 // show notice if WooCommerce plugin is not active 507 add_action('admin_notices', array(get_called_class(), 'admin_notice_dependency_error')); 508 } 509 } 510 511 public static function admin_notice_dependency_error() { 512 ?> 513 <div class="notice notice-error is-dismissible"> 514 <p><?php _e( 'Clearpay Gateway for WooCommerce requires WooCommerce to be installed and active!', 'woo_clearpay' ); ?></p> 515 </div> 516 <?php 517 } 497 518 } 498 519 … … 502 523 503 524 add_action( 'init', array('Clearpay_Plugin', 'register_blocks') ); 525 add_action( 'plugins_loaded', array('Clearpay_Plugin', 'plugin_dependencies') ); 504 526 add_action( 'plugins_loaded', array('Clearpay_Plugin', 'init'), 10, 0 ); 505 527 add_action( 'upgrader_process_complete', array('Clearpay_Plugin', 'upgrade_complete'), 10, 2 ); -
clearpay-gateway-for-woocommerce/trunk/readme.txt
r2993700 r3003031 3 3 Tags: woocommerce, clearpay 4 4 Requires at least: 4.8.3 5 Tested up to: 6. 3.26 Stable tag: 3.7. 15 Tested up to: 6.4.1 6 Stable tag: 3.7.2 7 7 License: GNU Public License 8 8 License URI: https://www.gnu.org/licenses/ … … 40 40 == Changelog == 41 41 42 = 3.7.2 = 43 *Release Date: Wednesday, 29 Nov 2023* 44 45 * Minor bug fixes and performance improvements. 46 * Tested and verified support for WordPress 6.4.1 and WooCommerce 8.3.1. 47 42 48 = 3.7.1 = 43 49 *Release Date: Friday, 10 Nov 2023* -
clearpay-gateway-for-woocommerce/trunk/vendor/composer/installed.php
r2993700 r3003031 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 2e415c2e31d0d12db85a87aa2c0ff5d86d0c05a7',6 'reference' => '638cb91d9b55ad8584bae638de96cc5cd3b7c116', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' 2e415c2e31d0d12db85a87aa2c0ff5d86d0c05a7',16 'reference' => '638cb91d9b55ad8584bae638de96cc5cd3b7c116', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.