Title: Display Payment Method
Last modified: January 8, 2019

---

# Display Payment Method

 *  Resolved [Husein Yuseinov](https://wordpress.org/support/users/webg/)
 * (@webg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/display-payment-method/)
 * Is it possible to display in pdf template the payment method and how?
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Husein Yuseinov](https://wordpress.org/support/users/webg/)
 * (@webg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/display-payment-method/#post-11064237)
 * I think I found it, here is what I did:
 *     ```
       <div class="payment-method">
       <?php do_action( 'wpo_wcpdf_before_customer_notes', $this->type, $this->order ); ?>
       <?php if ( $this->get_payment_method() ) : ?>
       <h3><?php _e( 'Метод на плащане', 'woocommerce-pdf-invoices-packing-slips' ); ?></h3>
       <?php $this->payment_method(); ?>
       <?php endif; ?>
       <?php do_action( 'wpo_wcpdf_before_customer_notes', $this->type, $this->order ); ?>
       </div>
       ```
   
 * Is the code correct?
    -  This reply was modified 7 years, 4 months ago by [Husein Yuseinov](https://wordpress.org/support/users/webg/).
    -  This reply was modified 7 years, 4 months ago by [Husein Yuseinov](https://wordpress.org/support/users/webg/).
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/display-payment-method/#post-11072487)
 * Yes, that should work. It’s the same code that is used in the Invoice for printing
   the payment method: [https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v2.2.5/templates/Simple/invoice.php#L73-L76](https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v2.2.5/templates/Simple/invoice.php#L73-L76)
 * Let us know if you run into any issues with this!
 *  Thread Starter [Husein Yuseinov](https://wordpress.org/support/users/webg/)
 * (@webg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/display-payment-method/#post-11072781)
 * Yup works, but I would like to put it after the totals, how is the proper way
   doing that?
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/display-payment-method/#post-11072796)
 * You can create a new `<tr>` here: [https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v2.2.5/templates/Simple/invoice.php#L135](https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v2.2.5/templates/Simple/invoice.php#L135)
 * good luck!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Display Payment Method’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/display-payment-method/#post-11072796)
 * Status: resolved