diff --git a/vietnam-payment-gateways.php b/vietnam-payment-gateways.php index fad279a..480c9df 100644 --- a/vietnam-payment-gateways.php +++ b/vietnam-payment-gateways.php @@ -26,7 +26,8 @@ function vnpg_add_gateway_class( $gateways ) { add_action( 'plugins_loaded', 'vnpg_init_gateway_class' ); function vnpg_init_gateway_class() { class WC_VNPG_YCB extends WC_Payment_Gateway { - public function __construct() { + + public function __construct() { $this->id = 'vnpg'; $this->icon = apply_filters( 'woocommerce_vnpg_icon', '' ); $this->has_fields = false; @@ -123,7 +124,7 @@ function vnpg_init_gateway_class() { * @param int $order_id Order ID. */ public function thankyou_page( $order_id ) { - //$this->payment_details( $order_id ); + $this->payment_details( $order_id ); } /** @@ -134,8 +135,8 @@ function vnpg_init_gateway_class() { * @param bool $plain_text Email format: plain text or HTML. */ public function email_instructions( $order, $sent_to_admin, $plain_text = false ) { - if (!$sent_to_admin && 'vnpg' === $order->get_paffyment_method() && $order->has_status('on-hold')) { - //$this->payment_details($order->get_id()); + if (!$sent_to_admin && 'vnpg' === $order->get_payment_method() && $order->has_status('on-hold')) { + $this->payment_details($order->get_id()); } } @@ -145,14 +146,14 @@ function vnpg_init_gateway_class() { $order = wc_get_order($order_id); $html = '