Title: Error get_payment_method and Refund orders
Last modified: November 15, 2020

---

# Error get_payment_method and Refund orders

 *  Resolved [mephiston91](https://wordpress.org/support/users/mephiston91/)
 * (@mephiston91)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-get_payment_method-and-refund-orders/)
 * Hi,
    You don’t check whether the function they are calling (get_payment_method)
   is available on the order type. Refund orders do not have this method.
 * Thx

Viewing 1 replies (of 1 total)

 *  Plugin Author [Payplug](https://wordpress.org/support/users/payplug/)
 * (@payplug)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/error-get_payment_method-and-refund-orders/#post-13911427)
 * Hello [@mephiston91](https://wordpress.org/support/users/mephiston91/),
 * Could you please open an issue if needed on our github [payplug-woocommerce](https://github.com/payplug/payplug-woocommerce)
 * Best regards

Viewing 1 replies (of 1 total)

The topic ‘Error get_payment_method and Refund orders’ is closed to new replies.

 * ![](https://ps.w.org/payplug/assets/icon-256x256.jpg?rev=2862188)
 * [PayPlug for WooCommerce (Official)](https://wordpress.org/plugins/payplug/)
 * [Support Threads](https://wordpress.org/support/plugin/payplug/)
 * [Active Topics](https://wordpress.org/support/plugin/payplug/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/payplug/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/payplug/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Payplug](https://wordpress.org/support/users/payplug/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/error-get_payment_method-and-refund-orders/#post-13911427)
 * Status: resolved