From 14aadd581b7709ddcceeef2f2887dc025d6e77cc Mon Sep 17 00:00:00 2001 From: Dat Hoang Date: Mon, 31 Aug 2020 21:32:23 +0700 Subject: [PATCH] Handle order notes --- inc/onepay/abstract-payment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/onepay/abstract-payment.php b/inc/onepay/abstract-payment.php index 57f4cb3..25648be 100644 --- a/inc/onepay/abstract-payment.php +++ b/inc/onepay/abstract-payment.php @@ -250,8 +250,8 @@ abstract class WooViet_OnePay_Abstract extends WC_Payment_Gateway { $order = wc_get_order( $order_id ); // Add the order note for the reference - $order_note = sprintf( - __( 'OnePay Domestic Gateway Info | Code: %1$s | Message: %2$s | MerchantTxnRef: %3$s | Type: %4$s', 'woo-viet' ), + $order_note = get_called_class() . sprintf( + __( ' Gateway Info | Code: %1$s | Message: %2$s | MerchantTxnRef: %3$s | Type: %4$s', 'woo-viet' ), $vpc_TxnResponseCode, $this->OnePay_getResponseDescription( $vpc_TxnResponseCode ), $vpc_MerchTxnRef,