Update 1.4.2 - Fix the fatal error when WooCommerce PayPal Express Checkout Gateway is not active

Related #53 and #54
This commit is contained in:
Dat Hoang
2018-04-26 16:48:46 +07:00
parent 64bac93cdf
commit 98d2a83cb1
3 changed files with 22 additions and 8 deletions
+8
View File
@@ -8,6 +8,14 @@ Xem phiên bản tiếng Việt tại đây https://vi.wordpress.org/plugins/woo
## Changelog
### 1.4.2 - 2018.04.26 =
* Fix the fatal error when WooCommerce PayPal Express Checkout Gateway is not active.
### 1.4.1 - 2018.04.26 =
* Fix the SVN command, missing some files on WP.org repo.
### 1.4 - 2018.04.24
* Fix the on-hold order issue with PayPal Standard.
+10 -5
View File
@@ -4,7 +4,7 @@ Tags: OnePay WooCommerce, OnePay Vietnam, WooCommerce Vietnam, vietnam, vietname
Requires at least: 4.3
Tested up to: 4.9.5
Requires PHP: 5.6
Stable tag: 1.4
Stable tag: 1.4.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -16,9 +16,6 @@ Add features to WooCommerce stores having anything related to Vietnam: currency,
Xem phiên bản tiếng Việt tại đây [https://vi.wordpress.org/plugins/woo-viet/](https://vi.wordpress.org/plugins/woo-viet/)
**NEW FEATURE**:
Add [the OnePay domestic (local ATM cards) gateway](http://onepay.com.vn/).
= FEATURES =
* Change the VND currency symbol `đ` to anything, e.g: `VND`, `VNĐ`, `đồng`, etc.
@@ -26,7 +23,7 @@ Add [the OnePay domestic (local ATM cards) gateway](http://onepay.com.vn/).
* Add districts to Vietnam provinces.
* Convert `000` of prices to `K` (or anything). E.g: `50000` (VND) will be `50K` (VND), or `50 thousand` (VND).
* Support `VND` for [the PayPal Standard gateway](https://docs.woocommerce.com/document/paypal-standard/). Convert `VND` prices to any PayPal supported currency before sending visitors to the PayPal pages.
* Support `VND` for [the PayPal Express Checkout gateway](https://docs.woocommerce.com/document/paypal-express-checkout/)
* Support `VND` for [the PayPal Express Checkout gateway](https://docs.woocommerce.com/document/paypal-express-checkout/).
* Add [the OnePay domestic (local ATM cards) gateway](http://onepay.com.vn/). Implement all methods in [the official documents](https://mtf.onepay.vn/developer/?page=modul_noidia_php): QueryDR, IPN, and Return URL.
= ROAD MAP =
@@ -76,6 +73,14 @@ Follow these steps to install and use the plugin:
== Changelog ==
= 1.4.2 - 2018.04.26 =
* Fix the fatal error when WooCommerce PayPal Express Checkout Gateway is not active.
= 1.4.1 - 2018.04.26 =
* Fix the SVN command, missing some files on WP.org repo.
= 1.4 - 2018.04.24 =
* Fix the on-hold order issue with PayPal Standard.
+4 -3
View File
@@ -7,7 +7,7 @@
* Author URI: https://profiles.wordpress.org/htdat
* Text Domain: woo-viet
* Domain Path: /languages
* Version: 1.4
* Version: 1.4.2
*
* WC requires at least: 2.6
* WC tested up to: 2.3
@@ -211,8 +211,9 @@ class WooViet {
}
// Check if "Support VND for the PayPal Express Checkout gateway" is enabled
if ( 'yes' == $settings['vnd_paypal_express_checkout']['enabled'] ) {
include( WOO_VIET_DIR . 'inc/class-wooviet-vnd-paypal-express-checkout.php' );
if ( 'yes' == $settings['vnd_paypal_express_checkout']['enabled']
AND class_exists( 'WC_Gateway_PPEC_Plugin' )
) { include( WOO_VIET_DIR . 'inc/class-wooviet-vnd-paypal-express-checkout.php' );
$this->VND_PayPal_Express_Checkout = new WooViet_VND_PayPal_Express_Checkout(
$settings['vnd_paypal_express_checkout']['rate'],
$settings['vnd_paypal_express_checkout']['currency']