Title: Refund not working
Last modified: September 14, 2020

---

# Refund not working

 *  [enriqueleon80](https://wordpress.org/support/users/enriqueleon80/)
 * (@enriqueleon80)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/refund-not-working-3/)
 * Howdy! Running on the latest version of WP and WCFM. While payments are getting
   processed correctly, refunds are not. I’ve set breakpoints all over this plugin
   and it’s as if nothing gets called. I see logic to handle refunds but the standard
   WOOCOMMERCE Paypal gateway logic is getting called instead.
 * Is there some documentation anywhere I can refer to so I can make sure this is
   setup right? Anyone else having any issues?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frefund-not-working-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/refund-not-working-3/#post-13414575)
 * Well, this plugin does not have any code related to refund.
 * Refund is from WooCommerce core. This plugin just set vendor’s API credentials
   through this hook – [https://ibb.co/25NLKhB](https://ibb.co/25NLKhB)
 * Hope you have set this fields as vendor from setting! Without these fields refund
   does not work.
 *  Thread Starter [enriqueleon80](https://wordpress.org/support/users/enriqueleon80/)
 * (@enriqueleon80)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/refund-not-working-3/#post-13414623)
 * Howdy!
 * Yes, agreed! Problem is that I don’t see the hooks getting triggered to set the
   API credentials from the vendor when a refund is triggered from the WCFM FrontEnd.
   As a result, the refund fails.
 * I see the following code:
    // Set Vendor PayPal API Credential for PayPal Refund
   add_filter( ‘woocommerce_paypal_refund_request’, array( $this, ‘wcfm_direct_paypal_refund_vendor_api_credentials_set’),
   50, 4 );
 * There are no breakpoints fired in the class-wc-frontend-manager-direct-paypal.
   php file. So you see, no way for this plugin to work. Am I missing something?
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/refund-not-working-3/#post-13434570)
 * > There are no breakpoints fired in the class-wc-frontend-manager-direct-paypal.
   > php file.
 * – What do you mean by “breakuppoint”?
 * Here is that function – [https://ibb.co/H4TNPVz](https://ibb.co/H4TNPVz)

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

The topic ‘Refund not working’ is closed to new replies.

 * ![](https://ps.w.org/wc-frontend-manager-direct-paypal/assets/icon-256x256.jpg?
   rev=2173373)
 * [WCFM - Direct PayPal Pay for WooCommerce Multivendor Marketplace](https://wordpress.org/plugins/wc-frontend-manager-direct-paypal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-frontend-manager-direct-paypal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-frontend-manager-direct-paypal/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-frontend-manager-direct-paypal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-frontend-manager-direct-paypal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-frontend-manager-direct-paypal/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/refund-not-working-3/#post-13434570)
 * Status: not resolved