Plugin Directory

Changeset 2957621


Ignore:
Timestamp:
08/24/2023 05:38:29 AM (2 years ago)
Author:
omise
Message:

Update to version 5.3.0 from GitHub

Location:
omise
Files:
8 added
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • omise/tags/5.3.0/CHANGELOG.md

    r2949923 r2957621  
    11# CHANGELOG
     2
     3### [v5.3.0 _(Aug 23, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.3.0)
     4- Add Alipay+ on Thailand psp. (PR [#394](https://github.com/omise/omise-woocommerce/pull/394))
     5- Adding admin_notices action once all dependencies are loaded. (PR [#395](https://github.com/omise/omise-woocommerce/pull/395))
    26
    37### [v5.2.1 _(Aug 9, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.2.1)
  • omise/tags/5.3.0/includes/gateway/class-omise-payment-alipayplus.php

    r2832733 r2957621  
    105105        $source = 'alipay_hk';
    106106        $title = 'AlipayHK';
    107         $countries = array( 'SG' );
     107        $countries = array( 'SG', 'TH' );
    108108        parent::__construct( $source, $title, $countries );
    109109    }
     
    132132        $source = 'kakaopay';
    133133        $title = 'Kakao Pay';
    134         $countries = array( 'SG' );
     134        $countries = array( 'SG', 'TH' );
    135135        parent::__construct( $source, $title, $countries );
    136136    }
  • omise/tags/5.3.0/includes/gateway/class-omise-payment-touch-n-go.php

    r2876857 r2957621  
    2222        $this->title                = $this->get_option( 'title' );
    2323        $this->description          = $this->get_option( 'description' );
    24         $this->restricted_countries = array( 'SG', 'MY' );
     24        $this->restricted_countries = array( 'SG', 'MY', 'TH' );
    2525       
    2626        add_action( 'woocommerce_api_' . $this->id . '_callback', 'Omise_Callback::execute' );
  • omise/tags/5.3.0/omise-woocommerce.php

    r2949923 r2957621  
    55 * Plugin URI:  https://www.omise.co/woocommerce
    66 * Description: Opn Payments is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Opn Payments Payment Gateway's payment methods to WooCommerce.
    7  * Version:     5.2.1
     7 * Version:     5.3.0
    88 * Author:      Opn Payments and contributors
    99 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2323     * @var string
    2424     */
    25     public $version = '5.2.1';
     25    public $version = '5.3.0';
    2626
    2727    /**
     
    5252        add_action('woocommerce_init', array($this, 'init'));
    5353        do_action('omise_initiated');
    54         add_action('admin_notices', [$this, 'embedded_form_notice']);
    5554    }
    5655
     
    126125
    127126        prepare_omise_myaccount_panel();
     127
     128        // adding action after all dependencies are loaded.
     129        if (static::$can_initiate) {
     130            // Moving here because the class used in the function could not be found on uninstall
     131            add_action('admin_notices', [$this, 'embedded_form_notice']);
     132            return;
     133        }
    128134    }
    129135
  • omise/tags/5.3.0/readme.txt

    r2949923 r2957621  
    44Requires at least: 4.3.1
    55Tested up to: 6.0.2
    6 Stable tag: 5.2.1
     6Stable tag: 5.3.0
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3434
    3535== Changelog ==
     36
     37= 5.3.0 =
     38
     39- Add Alipay+ on Thailand psp. (PR [#394](https://github.com/omise/omise-woocommerce/pull/394))
     40- Adding admin_notices action once all dependencies are loaded. (PR [#395](https://github.com/omise/omise-woocommerce/pull/395))
    3641
    3742= 5.2.1 =
  • omise/tags/5.3.0/tests/unit/includes/gateway/class-omise-payment-installment-test.php

    r2949923 r2957621  
    11<?php
    22
    3 use PHPUnit\Framework\TestCase;
    4 use Mockery;
     3require_once __DIR__ . '/class-omise-offsite-test.php';
    54
    6 class Omise_Payment_Installment_Test extends TestCase
     5class Omise_Payment_Installment_Test extends Offsite_Test
    76{
    87    public function setUp(): void
    98    {
    10         // Mocking the parent class
    11         $offsite = Mockery::mock('overload:Omise_Payment_Offsite');
    12         $offsite->shouldReceive('init_settings');
    13         $offsite->shouldReceive('get_option');
    14 
    15         // mocking WP built-in functions
    16         if (!function_exists('wp_kses')) {
    17             function wp_kses() {}
    18         }
    19 
    20         if (!function_exists('add_action')) {
    21             function add_action() {}
    22         }
    23 
     9        parent::setUp();
    2410        require_once __DIR__ . '/../../../../includes/gateway/class-omise-payment-installment.php';
    25     }
    26 
    27     /**
    28      * close mockery after tests are done
    29      */
    30     public function teardown(): void
    31     {
    32         Mockery::close();
    3311    }
    3412
  • omise/trunk/CHANGELOG.md

    r2949923 r2957621  
    11# CHANGELOG
     2
     3### [v5.3.0 _(Aug 23, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.3.0)
     4- Add Alipay+ on Thailand psp. (PR [#394](https://github.com/omise/omise-woocommerce/pull/394))
     5- Adding admin_notices action once all dependencies are loaded. (PR [#395](https://github.com/omise/omise-woocommerce/pull/395))
    26
    37### [v5.2.1 _(Aug 9, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.2.1)
  • omise/trunk/includes/gateway/class-omise-payment-alipayplus.php

    r2832733 r2957621  
    105105        $source = 'alipay_hk';
    106106        $title = 'AlipayHK';
    107         $countries = array( 'SG' );
     107        $countries = array( 'SG', 'TH' );
    108108        parent::__construct( $source, $title, $countries );
    109109    }
     
    132132        $source = 'kakaopay';
    133133        $title = 'Kakao Pay';
    134         $countries = array( 'SG' );
     134        $countries = array( 'SG', 'TH' );
    135135        parent::__construct( $source, $title, $countries );
    136136    }
  • omise/trunk/includes/gateway/class-omise-payment-touch-n-go.php

    r2876857 r2957621  
    2222        $this->title                = $this->get_option( 'title' );
    2323        $this->description          = $this->get_option( 'description' );
    24         $this->restricted_countries = array( 'SG', 'MY' );
     24        $this->restricted_countries = array( 'SG', 'MY', 'TH' );
    2525       
    2626        add_action( 'woocommerce_api_' . $this->id . '_callback', 'Omise_Callback::execute' );
  • omise/trunk/omise-woocommerce.php

    r2949923 r2957621  
    55 * Plugin URI:  https://www.omise.co/woocommerce
    66 * Description: Opn Payments is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Opn Payments Payment Gateway's payment methods to WooCommerce.
    7  * Version:     5.2.1
     7 * Version:     5.3.0
    88 * Author:      Opn Payments and contributors
    99 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2323     * @var string
    2424     */
    25     public $version = '5.2.1';
     25    public $version = '5.3.0';
    2626
    2727    /**
     
    5252        add_action('woocommerce_init', array($this, 'init'));
    5353        do_action('omise_initiated');
    54         add_action('admin_notices', [$this, 'embedded_form_notice']);
    5554    }
    5655
     
    126125
    127126        prepare_omise_myaccount_panel();
     127
     128        // adding action after all dependencies are loaded.
     129        if (static::$can_initiate) {
     130            // Moving here because the class used in the function could not be found on uninstall
     131            add_action('admin_notices', [$this, 'embedded_form_notice']);
     132            return;
     133        }
    128134    }
    129135
  • omise/trunk/readme.txt

    r2949923 r2957621  
    44Requires at least: 4.3.1
    55Tested up to: 6.0.2
    6 Stable tag: 5.2.1
     6Stable tag: 5.3.0
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3434
    3535== Changelog ==
     36
     37= 5.3.0 =
     38
     39- Add Alipay+ on Thailand psp. (PR [#394](https://github.com/omise/omise-woocommerce/pull/394))
     40- Adding admin_notices action once all dependencies are loaded. (PR [#395](https://github.com/omise/omise-woocommerce/pull/395))
    3641
    3742= 5.2.1 =
  • omise/trunk/tests/unit/includes/gateway/class-omise-payment-installment-test.php

    r2949923 r2957621  
    11<?php
    22
    3 use PHPUnit\Framework\TestCase;
    4 use Mockery;
     3require_once __DIR__ . '/class-omise-offsite-test.php';
    54
    6 class Omise_Payment_Installment_Test extends TestCase
     5class Omise_Payment_Installment_Test extends Offsite_Test
    76{
    87    public function setUp(): void
    98    {
    10         // Mocking the parent class
    11         $offsite = Mockery::mock('overload:Omise_Payment_Offsite');
    12         $offsite->shouldReceive('init_settings');
    13         $offsite->shouldReceive('get_option');
    14 
    15         // mocking WP built-in functions
    16         if (!function_exists('wp_kses')) {
    17             function wp_kses() {}
    18         }
    19 
    20         if (!function_exists('add_action')) {
    21             function add_action() {}
    22         }
    23 
     9        parent::setUp();
    2410        require_once __DIR__ . '/../../../../includes/gateway/class-omise-payment-installment.php';
    25     }
    26 
    27     /**
    28      * close mockery after tests are done
    29      */
    30     public function teardown(): void
    31     {
    32         Mockery::close();
    3311    }
    3412
Note: See TracChangeset for help on using the changeset viewer.