diff --git a/assets/onepay_domestic.png b/assets/onepay_domestic.png new file mode 100644 index 0000000..92059e6 Binary files /dev/null and b/assets/onepay_domestic.png differ diff --git a/inc/class-wooviet-onepay-domestic.php b/inc/class-wooviet-onepay-domestic.php index c48487a..b5e1afb 100644 --- a/inc/class-wooviet-onepay-domestic.php +++ b/inc/class-wooviet-onepay-domestic.php @@ -31,7 +31,8 @@ class WooViet_OnePay_Domestic extends WC_Payment_Gateway { // Define user set variables. $this->title = $this->get_option( 'title' ); - $this->description = $this->get_option( 'description' ); + $this->description = $this->get_option( 'description' ) . sprintf( '
', WOO_VIET_URL . 'assets/onepay_domestic.png' ); + $this->testmode = 'yes' === $this->get_option( 'testmode', 'no' ); $this->merchant_id = $this->get_option( 'merchant_id' ); $this->access_code = $this->get_option( 'access_code' ); diff --git a/woo-viet.php b/woo-viet.php index 17d4ad4..f2bede6 100644 --- a/woo-viet.php +++ b/woo-viet.php @@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) { } define( 'WOO_VIET_DIR', plugin_dir_path( __FILE__ ) ); -// define( 'WOO_VIET_URL', plugins_url( '/', __FILE__ ) ); +define( 'WOO_VIET_URL', plugins_url( '/', __FILE__ ) ); /** * Start the instance