Changeset 3358402
- Timestamp:
- 09/09/2025 08:15:20 AM (7 months ago)
- Location:
- wpbr-linepay-tw
- Files:
-
- 10 edited
- 1 copied
-
tags/1.3.2 (copied) (copied from wpbr-linepay-tw/trunk)
-
tags/1.3.2/includes/gateways/class-linepay-tw-payment-block.php (modified) (3 diffs)
-
tags/1.3.2/includes/gateways/class-linepay-tw-payment.php (modified) (2 diffs)
-
tags/1.3.2/includes/utils/class-wpbr-linepay-const.php (modified) (1 diff)
-
tags/1.3.2/readme.txt (modified) (2 diffs)
-
tags/1.3.2/wpbr-linepay-tw.php (modified) (3 diffs)
-
trunk/includes/gateways/class-linepay-tw-payment-block.php (modified) (3 diffs)
-
trunk/includes/gateways/class-linepay-tw-payment.php (modified) (2 diffs)
-
trunk/includes/utils/class-wpbr-linepay-const.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpbr-linepay-tw.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpbr-linepay-tw/tags/1.3.2/includes/gateways/class-linepay-tw-payment-block.php
r3089140 r3358402 16 16 17 17 /** 18 * The payment gateway instance19 *20 * @var LINEPay_TW_Payment21 */22 private $gateway;23 24 /**25 18 * Initialize the payment method 26 19 */ 27 20 public function initialize() { 28 21 $this->settings = get_option( 'woocommerce_linepay-tw_settings', array() ); 29 $gateways = WC()->payment_gateways->payment_gateways();30 $this->gateway = $gateways[ $this->name ];31 22 } 32 23 … … 35 26 */ 36 27 public function is_active() { 37 return $this->gateway->is_available();28 return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN ); 38 29 } 39 30 … … 70 61 'title' => $this->get_setting( 'title' ), 71 62 'description' => $this->get_setting( 'description' ), 72 'button_title' => $this->gateway->order_button_text,73 'supports' => array_filter( $this->gateway->supports, array( $this->gateway, 'supports' ) ),74 63 ); 75 64 } -
wpbr-linepay-tw/tags/1.3.2/includes/gateways/class-linepay-tw-payment.php
r3089140 r3358402 21 21 22 22 /** 23 * The payment type. 24 * 25 * @var string 26 */ 27 public $payment_type; 28 29 /** 30 * The supported currencies. 31 * @var mixed 32 */ 33 public $supported_currencies; 34 35 /** 23 36 * The constructor. 24 37 */ … … 35 48 36 49 $this->payment_type = 'NORMAL'; 37 $this->payment_action = get_option( 'linepay_tw_payment_action' );38 50 39 51 // Support refund function. -
wpbr-linepay-tw/tags/1.3.2/includes/utils/class-wpbr-linepay-const.php
r2964807 r3358402 60 60 const PAYMENT_STATUS_FAILED = 'failed'; 61 61 62 // payment action.63 const PAYMENT_ACTION_AUTH = 'authorization';64 const PAYMENT_ACTION_AUTH_CAPTURE = 'authorization/capture';65 66 62 // payment type. 67 63 const PAYMENT_TYPE_NORMAL = 'NORMAL'; -
wpbr-linepay-tw/tags/1.3.2/readme.txt
r3181846 r3358402 3 3 Tags: WooCommerce, payment, LINE Pay, LINE, payment gateway 4 4 Requires at least: 5.9 5 Tested up to: 6. 66 Requires PHP: 7.47 Stable tag: 1.3. 15 Tested up to: 6.8 6 Requires PHP: 8.0 7 Stable tag: 1.3.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 26 26 27 27 == Changelog == 28 29 = 1.3.2 - 2025-09-09 = 30 * UPDATE - Increase Requires PHP version to 8.0 31 * UPDATE - Minor adjustment for block checkout compatibility. 32 * FIX - Avoid dynamic properties and support PHP 8.2 (also PHP 8.3) 28 33 29 34 = 1.3.1 - 2024-11-05 = -
wpbr-linepay-tw/tags/1.3.2/wpbr-linepay-tw.php
r3181844 r3358402 6 6 * Author: WPBrewer 7 7 * Author URI: https://wpbrewer.com 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * Requires Plugins: woocommerce 10 10 * Text Domain: wpbr-linepay-tw … … 12 12 * 13 13 * WC requires at least: 6.0.0 14 * WC tested up to: 9.3.314 * WC tested up to: 10.1.2 15 15 * 16 16 * … … 36 36 define( 'WPBR_LINEPAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 37 37 define( 'WPBR_LINEPAY_BASENAME', plugin_basename( __FILE__ ) ); 38 define( 'WPBR_LINEPAY_VERSION', '1.3. 1' );38 define( 'WPBR_LINEPAY_VERSION', '1.3.2' ); 39 39 40 40 /** -
wpbr-linepay-tw/trunk/includes/gateways/class-linepay-tw-payment-block.php
r3089140 r3358402 16 16 17 17 /** 18 * The payment gateway instance19 *20 * @var LINEPay_TW_Payment21 */22 private $gateway;23 24 /**25 18 * Initialize the payment method 26 19 */ 27 20 public function initialize() { 28 21 $this->settings = get_option( 'woocommerce_linepay-tw_settings', array() ); 29 $gateways = WC()->payment_gateways->payment_gateways();30 $this->gateway = $gateways[ $this->name ];31 22 } 32 23 … … 35 26 */ 36 27 public function is_active() { 37 return $this->gateway->is_available();28 return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN ); 38 29 } 39 30 … … 70 61 'title' => $this->get_setting( 'title' ), 71 62 'description' => $this->get_setting( 'description' ), 72 'button_title' => $this->gateway->order_button_text,73 'supports' => array_filter( $this->gateway->supports, array( $this->gateway, 'supports' ) ),74 63 ); 75 64 } -
wpbr-linepay-tw/trunk/includes/gateways/class-linepay-tw-payment.php
r3089140 r3358402 21 21 22 22 /** 23 * The payment type. 24 * 25 * @var string 26 */ 27 public $payment_type; 28 29 /** 30 * The supported currencies. 31 * @var mixed 32 */ 33 public $supported_currencies; 34 35 /** 23 36 * The constructor. 24 37 */ … … 35 48 36 49 $this->payment_type = 'NORMAL'; 37 $this->payment_action = get_option( 'linepay_tw_payment_action' );38 50 39 51 // Support refund function. -
wpbr-linepay-tw/trunk/includes/utils/class-wpbr-linepay-const.php
r2964807 r3358402 60 60 const PAYMENT_STATUS_FAILED = 'failed'; 61 61 62 // payment action.63 const PAYMENT_ACTION_AUTH = 'authorization';64 const PAYMENT_ACTION_AUTH_CAPTURE = 'authorization/capture';65 66 62 // payment type. 67 63 const PAYMENT_TYPE_NORMAL = 'NORMAL'; -
wpbr-linepay-tw/trunk/readme.txt
r3181846 r3358402 3 3 Tags: WooCommerce, payment, LINE Pay, LINE, payment gateway 4 4 Requires at least: 5.9 5 Tested up to: 6. 66 Requires PHP: 7.47 Stable tag: 1.3. 15 Tested up to: 6.8 6 Requires PHP: 8.0 7 Stable tag: 1.3.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 26 26 27 27 == Changelog == 28 29 = 1.3.2 - 2025-09-09 = 30 * UPDATE - Increase Requires PHP version to 8.0 31 * UPDATE - Minor adjustment for block checkout compatibility. 32 * FIX - Avoid dynamic properties and support PHP 8.2 (also PHP 8.3) 28 33 29 34 = 1.3.1 - 2024-11-05 = -
wpbr-linepay-tw/trunk/wpbr-linepay-tw.php
r3181844 r3358402 6 6 * Author: WPBrewer 7 7 * Author URI: https://wpbrewer.com 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * Requires Plugins: woocommerce 10 10 * Text Domain: wpbr-linepay-tw … … 12 12 * 13 13 * WC requires at least: 6.0.0 14 * WC tested up to: 9.3.314 * WC tested up to: 10.1.2 15 15 * 16 16 * … … 36 36 define( 'WPBR_LINEPAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 37 37 define( 'WPBR_LINEPAY_BASENAME', plugin_basename( __FILE__ ) ); 38 define( 'WPBR_LINEPAY_VERSION', '1.3. 1' );38 define( 'WPBR_LINEPAY_VERSION', '1.3.2' ); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.