The skeleton files for OnePay Domestic

This commit is contained in:
htdat
2017-04-17 21:46:56 +07:00
parent 7f87b70d6c
commit 3eeb71bf69
3 changed files with 170 additions and 0 deletions
+13
View File
@@ -119,11 +119,24 @@ class WooViet {
load_plugin_textdomain( 'woo-viet', false, basename( dirname( __FILE__ ) ) . '/languages/' );
}
public function add_gateway_class( $methods ) {
$methods[] = 'WooViet_OnePay_Domestic';
return $methods;
}
/**
* The main method to load the components
*/
public function main() {
// @todo: ver 1.3 check this
add_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateway_class' ) );
include( 'inc/class-wooviet-onepay-domestic.php');
if ( is_admin() ) {
// Add the admin setting page
include( WOO_VIET_DIR . 'inc/class-wooviet-admin-page.php' );