Changeset 3039963
- Timestamp:
- 02/22/2024 11:29:11 PM (2 years ago)
- Location:
- wc-smartpay/trunk
- Files:
-
- 5 added
- 4 edited
-
README.md (modified) (1 diff)
-
assets/index.php (added)
-
assets/js (added)
-
assets/js/checkout.js (added)
-
assets/js/index.php (added)
-
includes/class-smartpay-checkout-block.php (added)
-
includes/class-smartpay-payment-gateway.php (modified) (2 diffs)
-
includes/class-smartpay.php (modified) (3 diffs)
-
smartpay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-smartpay/trunk/README.md
r3039652 r3039963 1 1 === SmartPay for WooCommerce === 2 Stable tag: 1.0. 42 Stable tag: 1.0.5 3 3 Tested up to: 6.4 4 4 License: GPLv2 or later -
wc-smartpay/trunk/includes/class-smartpay-payment-gateway.php
r3031558 r3039963 13 13 * Method code 14 14 */ 15 const METHOD_CODE = 'wc _smartpay';15 const METHOD_CODE = 'wc-smartpay'; 16 16 17 17 /** … … 350 350 ); 351 351 } 352 return $this->payment_processor()->execute( $order _id);352 return $this->payment_processor()->execute( $order ); 353 353 } 354 354 -
wc-smartpay/trunk/includes/class-smartpay.php
r3039652 r3039963 16 16 * @var string 17 17 */ 18 private $version = '1.0. 4';18 private $version = '1.0.5'; 19 19 20 20 /** … … 79 79 */ 80 80 private function __construct() { 81 add_action( 'woocommerce_blocks_loaded', array( $this, 'enable_blocks_support') ); 81 82 add_action( 'woocommerce_init', array( $this, 'init_hooks' ) ); 82 83 add_filter( 'auto_update_plugin', array( $this, 'enable_auto_updates' ), 10, 2 ); … … 180 181 } 181 182 183 /** 184 * @return void 185 */ 186 public function enable_blocks_support() 187 { 188 if ( class_exists( 'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType' ) ) { 189 add_action( 190 'woocommerce_blocks_payment_method_type_registration', 191 function( $payment_method_registry ) { 192 $payment_method_registry->register( new SmartPay_Checkout_Block() ); 193 } 194 ); 195 } 196 } 197 182 198 /** 183 199 * Enable auto updates -
wc-smartpay/trunk/smartpay.php
r3039652 r3039963 4 4 * Plugin URI: https://smartpay.co.il/ 5 5 * Description: SmartPay payment plugin for WooCommerce 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Author: SmartPay 8 8 * License: GPLv2 or later … … 15 15 defined( 'ABSPATH' ) || exit; 16 16 17 define( 'SMARTPAY_VERSION', '1.0. 4' );17 define( 'SMARTPAY_VERSION', '1.0.5' ); 18 18 19 19 if ( ! defined( 'SMARTPAY_PLUGIN_FILE' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.