Plugin Directory

Changeset 3358402


Ignore:
Timestamp:
09/09/2025 08:15:20 AM (7 months ago)
Author:
wpbrewer
Message:

Update to version 1.3.2 from GitHub

Location:
wpbr-linepay-tw
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wpbr-linepay-tw/tags/1.3.2/includes/gateways/class-linepay-tw-payment-block.php

    r3089140 r3358402  
    1616
    1717    /**
    18      * The payment gateway instance
    19      *
    20      * @var LINEPay_TW_Payment
    21      */
    22     private $gateway;
    23 
    24     /**
    2518     * Initialize the payment method
    2619     */
    2720    public function initialize() {
    2821        $this->settings = get_option( 'woocommerce_linepay-tw_settings', array() );
    29         $gateways       = WC()->payment_gateways->payment_gateways();
    30         $this->gateway  = $gateways[ $this->name ];
    3122    }
    3223
     
    3526     */
    3627    public function is_active() {
    37         return $this->gateway->is_available();
     28        return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN );
    3829    }
    3930
     
    7061            'title'        => $this->get_setting( 'title' ),
    7162            'description'  => $this->get_setting( 'description' ),
    72             'button_title' => $this->gateway->order_button_text,
    73             'supports'    => array_filter( $this->gateway->supports, array( $this->gateway, 'supports' ) ),
    7463        );
    7564    }
  • wpbr-linepay-tw/tags/1.3.2/includes/gateways/class-linepay-tw-payment.php

    r3089140 r3358402  
    2121
    2222    /**
     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    /**
    2336     * The constructor.
    2437     */
     
    3548
    3649        $this->payment_type   = 'NORMAL';
    37         $this->payment_action = get_option( 'linepay_tw_payment_action' );
    3850
    3951        // Support refund function.
  • wpbr-linepay-tw/tags/1.3.2/includes/utils/class-wpbr-linepay-const.php

    r2964807 r3358402  
    6060    const PAYMENT_STATUS_FAILED    = 'failed';
    6161
    62     // payment action.
    63     const PAYMENT_ACTION_AUTH         = 'authorization';
    64     const PAYMENT_ACTION_AUTH_CAPTURE = 'authorization/capture';
    65 
    6662    // payment type.
    6763    const PAYMENT_TYPE_NORMAL      = 'NORMAL';
  • wpbr-linepay-tw/tags/1.3.2/readme.txt

    r3181846 r3358402  
    33Tags: WooCommerce, payment, LINE Pay, LINE, payment gateway
    44Requires at least: 5.9
    5 Tested up to: 6.6
    6 Requires PHP: 7.4
    7 Stable tag: 1.3.1
     5Tested up to: 6.8
     6Requires PHP: 8.0
     7Stable tag: 1.3.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2626
    2727== 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)
    2833
    2934= 1.3.1 - 2024-11-05 =
  • wpbr-linepay-tw/tags/1.3.2/wpbr-linepay-tw.php

    r3181844 r3358402  
    66 * Author: WPBrewer
    77 * Author URI: https://wpbrewer.com
    8  * Version: 1.3.1
     8 * Version: 1.3.2
    99 * Requires Plugins: woocommerce
    1010 * Text Domain: wpbr-linepay-tw
     
    1212 *
    1313 * WC requires at least: 6.0.0
    14  * WC tested up to: 9.3.3
     14 * WC tested up to: 10.1.2
    1515 *
    1616 *
     
    3636define( 'WPBR_LINEPAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    3737define( 'WPBR_LINEPAY_BASENAME', plugin_basename( __FILE__ ) );
    38 define( 'WPBR_LINEPAY_VERSION', '1.3.1' );
     38define( 'WPBR_LINEPAY_VERSION', '1.3.2' );
    3939
    4040/**
  • wpbr-linepay-tw/trunk/includes/gateways/class-linepay-tw-payment-block.php

    r3089140 r3358402  
    1616
    1717    /**
    18      * The payment gateway instance
    19      *
    20      * @var LINEPay_TW_Payment
    21      */
    22     private $gateway;
    23 
    24     /**
    2518     * Initialize the payment method
    2619     */
    2720    public function initialize() {
    2821        $this->settings = get_option( 'woocommerce_linepay-tw_settings', array() );
    29         $gateways       = WC()->payment_gateways->payment_gateways();
    30         $this->gateway  = $gateways[ $this->name ];
    3122    }
    3223
     
    3526     */
    3627    public function is_active() {
    37         return $this->gateway->is_available();
     28        return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN );
    3829    }
    3930
     
    7061            'title'        => $this->get_setting( 'title' ),
    7162            'description'  => $this->get_setting( 'description' ),
    72             'button_title' => $this->gateway->order_button_text,
    73             'supports'    => array_filter( $this->gateway->supports, array( $this->gateway, 'supports' ) ),
    7463        );
    7564    }
  • wpbr-linepay-tw/trunk/includes/gateways/class-linepay-tw-payment.php

    r3089140 r3358402  
    2121
    2222    /**
     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    /**
    2336     * The constructor.
    2437     */
     
    3548
    3649        $this->payment_type   = 'NORMAL';
    37         $this->payment_action = get_option( 'linepay_tw_payment_action' );
    3850
    3951        // Support refund function.
  • wpbr-linepay-tw/trunk/includes/utils/class-wpbr-linepay-const.php

    r2964807 r3358402  
    6060    const PAYMENT_STATUS_FAILED    = 'failed';
    6161
    62     // payment action.
    63     const PAYMENT_ACTION_AUTH         = 'authorization';
    64     const PAYMENT_ACTION_AUTH_CAPTURE = 'authorization/capture';
    65 
    6662    // payment type.
    6763    const PAYMENT_TYPE_NORMAL      = 'NORMAL';
  • wpbr-linepay-tw/trunk/readme.txt

    r3181846 r3358402  
    33Tags: WooCommerce, payment, LINE Pay, LINE, payment gateway
    44Requires at least: 5.9
    5 Tested up to: 6.6
    6 Requires PHP: 7.4
    7 Stable tag: 1.3.1
     5Tested up to: 6.8
     6Requires PHP: 8.0
     7Stable tag: 1.3.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2626
    2727== 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)
    2833
    2934= 1.3.1 - 2024-11-05 =
  • wpbr-linepay-tw/trunk/wpbr-linepay-tw.php

    r3181844 r3358402  
    66 * Author: WPBrewer
    77 * Author URI: https://wpbrewer.com
    8  * Version: 1.3.1
     8 * Version: 1.3.2
    99 * Requires Plugins: woocommerce
    1010 * Text Domain: wpbr-linepay-tw
     
    1212 *
    1313 * WC requires at least: 6.0.0
    14  * WC tested up to: 9.3.3
     14 * WC tested up to: 10.1.2
    1515 *
    1616 *
     
    3636define( 'WPBR_LINEPAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    3737define( 'WPBR_LINEPAY_BASENAME', plugin_basename( __FILE__ ) );
    38 define( 'WPBR_LINEPAY_VERSION', '1.3.1' );
     38define( 'WPBR_LINEPAY_VERSION', '1.3.2' );
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.