Changeset 2957621
- Timestamp:
- 08/24/2023 05:38:29 AM (2 years ago)
- Location:
- omise
- Files:
-
- 8 added
- 12 edited
- 1 copied
-
tags/5.3.0 (copied) (copied from omise/trunk)
-
tags/5.3.0/CHANGELOG.md (modified) (1 diff)
-
tags/5.3.0/includes/gateway/class-omise-payment-alipayplus.php (modified) (2 diffs)
-
tags/5.3.0/includes/gateway/class-omise-payment-touch-n-go.php (modified) (1 diff)
-
tags/5.3.0/omise-woocommerce.php (modified) (4 diffs)
-
tags/5.3.0/readme.txt (modified) (2 diffs)
-
tags/5.3.0/tests/unit/includes/gateway/class-omise-offsite-test.php (added)
-
tags/5.3.0/tests/unit/includes/gateway/class-omise-payment-alipayplus-hk-test.php (added)
-
tags/5.3.0/tests/unit/includes/gateway/class-omise-payment-alipayplus-kakaopay-test.php (added)
-
tags/5.3.0/tests/unit/includes/gateway/class-omise-payment-installment-test.php (modified) (1 diff)
-
tags/5.3.0/tests/unit/includes/gateway/class-omise-payment-touch-n-go-test.php (added)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/includes/gateway/class-omise-payment-alipayplus.php (modified) (2 diffs)
-
trunk/includes/gateway/class-omise-payment-touch-n-go.php (modified) (1 diff)
-
trunk/omise-woocommerce.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tests/unit/includes/gateway/class-omise-offsite-test.php (added)
-
trunk/tests/unit/includes/gateway/class-omise-payment-alipayplus-hk-test.php (added)
-
trunk/tests/unit/includes/gateway/class-omise-payment-alipayplus-kakaopay-test.php (added)
-
trunk/tests/unit/includes/gateway/class-omise-payment-installment-test.php (modified) (1 diff)
-
trunk/tests/unit/includes/gateway/class-omise-payment-touch-n-go-test.php (added)
Legend:
- Unmodified
- Added
- Removed
-
omise/tags/5.3.0/CHANGELOG.md
r2949923 r2957621 1 1 # 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)) 2 6 3 7 ### [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 105 105 $source = 'alipay_hk'; 106 106 $title = 'AlipayHK'; 107 $countries = array( 'SG' );107 $countries = array( 'SG', 'TH' ); 108 108 parent::__construct( $source, $title, $countries ); 109 109 } … … 132 132 $source = 'kakaopay'; 133 133 $title = 'Kakao Pay'; 134 $countries = array( 'SG' );134 $countries = array( 'SG', 'TH' ); 135 135 parent::__construct( $source, $title, $countries ); 136 136 } -
omise/tags/5.3.0/includes/gateway/class-omise-payment-touch-n-go.php
r2876857 r2957621 22 22 $this->title = $this->get_option( 'title' ); 23 23 $this->description = $this->get_option( 'description' ); 24 $this->restricted_countries = array( 'SG', 'MY' );24 $this->restricted_countries = array( 'SG', 'MY', 'TH' ); 25 25 26 26 add_action( 'woocommerce_api_' . $this->id . '_callback', 'Omise_Callback::execute' ); -
omise/tags/5.3.0/omise-woocommerce.php
r2949923 r2957621 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * 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.17 * Version: 5.3.0 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5. 2.1';25 public $version = '5.3.0'; 26 26 27 27 /** … … 52 52 add_action('woocommerce_init', array($this, 'init')); 53 53 do_action('omise_initiated'); 54 add_action('admin_notices', [$this, 'embedded_form_notice']);55 54 } 56 55 … … 126 125 127 126 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 } 128 134 } 129 135 -
omise/tags/5.3.0/readme.txt
r2949923 r2957621 4 4 Requires at least: 4.3.1 5 5 Tested up to: 6.0.2 6 Stable tag: 5. 2.16 Stable tag: 5.3.0 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == 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)) 36 41 37 42 = 5.2.1 = -
omise/tags/5.3.0/tests/unit/includes/gateway/class-omise-payment-installment-test.php
r2949923 r2957621 1 1 <?php 2 2 3 use PHPUnit\Framework\TestCase; 4 use Mockery; 3 require_once __DIR__ . '/class-omise-offsite-test.php'; 5 4 6 class Omise_Payment_Installment_Test extends TestCase5 class Omise_Payment_Installment_Test extends Offsite_Test 7 6 { 8 7 public function setUp(): void 9 8 { 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(); 24 10 require_once __DIR__ . '/../../../../includes/gateway/class-omise-payment-installment.php'; 25 }26 27 /**28 * close mockery after tests are done29 */30 public function teardown(): void31 {32 Mockery::close();33 11 } 34 12 -
omise/trunk/CHANGELOG.md
r2949923 r2957621 1 1 # 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)) 2 6 3 7 ### [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 105 105 $source = 'alipay_hk'; 106 106 $title = 'AlipayHK'; 107 $countries = array( 'SG' );107 $countries = array( 'SG', 'TH' ); 108 108 parent::__construct( $source, $title, $countries ); 109 109 } … … 132 132 $source = 'kakaopay'; 133 133 $title = 'Kakao Pay'; 134 $countries = array( 'SG' );134 $countries = array( 'SG', 'TH' ); 135 135 parent::__construct( $source, $title, $countries ); 136 136 } -
omise/trunk/includes/gateway/class-omise-payment-touch-n-go.php
r2876857 r2957621 22 22 $this->title = $this->get_option( 'title' ); 23 23 $this->description = $this->get_option( 'description' ); 24 $this->restricted_countries = array( 'SG', 'MY' );24 $this->restricted_countries = array( 'SG', 'MY', 'TH' ); 25 25 26 26 add_action( 'woocommerce_api_' . $this->id . '_callback', 'Omise_Callback::execute' ); -
omise/trunk/omise-woocommerce.php
r2949923 r2957621 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * 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.17 * Version: 5.3.0 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5. 2.1';25 public $version = '5.3.0'; 26 26 27 27 /** … … 52 52 add_action('woocommerce_init', array($this, 'init')); 53 53 do_action('omise_initiated'); 54 add_action('admin_notices', [$this, 'embedded_form_notice']);55 54 } 56 55 … … 126 125 127 126 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 } 128 134 } 129 135 -
omise/trunk/readme.txt
r2949923 r2957621 4 4 Requires at least: 4.3.1 5 5 Tested up to: 6.0.2 6 Stable tag: 5. 2.16 Stable tag: 5.3.0 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == 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)) 36 41 37 42 = 5.2.1 = -
omise/trunk/tests/unit/includes/gateway/class-omise-payment-installment-test.php
r2949923 r2957621 1 1 <?php 2 2 3 use PHPUnit\Framework\TestCase; 4 use Mockery; 3 require_once __DIR__ . '/class-omise-offsite-test.php'; 5 4 6 class Omise_Payment_Installment_Test extends TestCase5 class Omise_Payment_Installment_Test extends Offsite_Test 7 6 { 8 7 public function setUp(): void 9 8 { 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(); 24 10 require_once __DIR__ . '/../../../../includes/gateway/class-omise-payment-installment.php'; 25 }26 27 /**28 * close mockery after tests are done29 */30 public function teardown(): void31 {32 Mockery::close();33 11 } 34 12
Note: See TracChangeset
for help on using the changeset viewer.