diff --git a/assets/onepay_domestic.png b/assets/wooviet_onepay_domestic.png similarity index 100% rename from assets/onepay_domestic.png rename to assets/wooviet_onepay_domestic.png diff --git a/assets/wooviet_onepay_international.png b/assets/wooviet_onepay_international.png new file mode 100644 index 0000000..be17a60 Binary files /dev/null and b/assets/wooviet_onepay_international.png differ diff --git a/inc/onepay/abstract-payment.php b/inc/onepay/abstract-payment.php index 25648be..e723a01 100644 --- a/inc/onepay/abstract-payment.php +++ b/inc/onepay/abstract-payment.php @@ -51,7 +51,10 @@ abstract class WooViet_OnePay_Abstract extends WC_Payment_Gateway { // Define user set variables. $this->title = $this->get_option( 'title' ); - $this->description = $this->get_option( 'description' ) . sprintf( '
', WOO_VIET_URL . 'assets/onepay_domestic.png' ); + $this->description = $this->get_option( 'description' ) + . sprintf( '
', + $this->id . '_logo', + apply_filters( $this->id . '_logo', WOO_VIET_URL . "assets/$this->id.png" ) ); $this->testmode = 'yes' === $this->get_option( 'testmode', 'no' ); $this->merchant_id = $this->get_option( 'merchant_id' );