diff --git a/includes/admin/meta-boxes/class-wc-meta-box-order-data.php b/includes/admin/meta-boxes/class-wc-meta-box-order-data.php index 5f3a747fcdf..4d5e6a0308e 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-order-data.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-order-data.php @@ -207,6 +207,10 @@ class WC_Meta_Box_Order_Data { if ( $payment_method ) echo '

' . __( 'Payment Method', 'woocommerce' ) . ': ' . ( isset( $payment_gateways[ $payment_method ] ) ? esc_html( $payment_gateways[ $payment_method ]->get_title() ) : esc_html( $payment_method ) ) . '

'; + if ( $transaction_id = get_post_meta( $order->id, '_transaction_id', true ) ) { + echo '

' . __( 'Payment Transaction ID', 'woocommerce' ) . ': ' . esc_html( $transaction_id ) . '

'; + } + echo ''; // Display form @@ -397,4 +401,4 @@ class WC_Meta_Box_Order_Data { wc_delete_shop_order_transients( $post_id ); } -} \ No newline at end of file +}