Bank Transfer Details in Woocommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels plugin

I am using Woocommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels plugin to generate invoices for purchase made from my site. I want for Bank Transfers, the Bank Details should display at the bottom of the invoice. I am using the free version.

I have added the below code in my functions.php

add_filter('wt_pklist_alter_order_template_html', 'wt_pklist_bacs_details', 10, 2);
function wt_pklist_bacs_details($html, $template_type)
{
  if($template_type=='invoice') 
  {
    $pymt = '[wfte_product_table_payment_method]';
    if($pymt=="Direct Bank Transfer")
    {
      $html.='<p>Below are the Bank Details</p>';
    }
  }
  return $html;
}

If I output $pymt, it returns Direct Bank Transfer, but the if condition is not working. If set to !=, then it shows the Bank Details. Can anyone point me where I am missing it?

Thanks in advance.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum