Title: Regarding Payment plugin refund functionality
Last modified: September 9, 2021

---

# Regarding Payment plugin refund functionality

 *  [nishanthveema](https://wordpress.org/support/users/nishanthveema/)
 * (@nishanthveema)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/regarding-payment-plugin-refund-functionality/)
 * HI everyone, Currently I am developing a payment gateway plugin for my knowledge.
   as part of my development, I would like to implement refund functionality in 
   the plugin. however, i have no idea how to do that. Also I doubt that if there
   is any way(hook/callback) to catch refund details when I chick the refund manually
   button after give the refund money. it would be grateful, if anyone helps me 
   in this
    thanks
    -  This topic was modified 4 years, 9 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

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

 *  [Muhammad Faizan Haidar](https://wordpress.org/support/users/muhammadfaizanhaidar/)
 * (@muhammadfaizanhaidar)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/regarding-payment-plugin-refund-functionality/#post-14853998)
 * Hi [@nishanthveema](https://wordpress.org/support/users/nishanthveema/) that 
   depends on which api you ara using as your gateway i.e ( stripe ).
    You can setup
   webhooks on your stripe account and expose an endpoint via your plugin where 
   you can receive data from webhook and you can add_action in the call back function
   which tracks the refund as per you requirements.
 *  Thread Starter [nishanthveema](https://wordpress.org/support/users/nishanthveema/)
 * (@nishanthveema)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/regarding-payment-plugin-refund-functionality/#post-14854441)
 * Hi [@muhammadfaizanhaidar](https://wordpress.org/support/users/muhammadfaizanhaidar/),
   thanks for your reply. I have setup webhook in my gateway account and point to
   plugin but how I can trigger a refund functionality from the plugin like once
   I click the refund manually button, how I will get the order details. since I
   am developing a plugin(Bumper payment gateway) I dont know how to get the refund
   order details from woocommerce to process and send it to gateway
    thanks

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

The topic ‘Regarding Payment plugin refund functionality’ is closed to new replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [payment gateway](https://wordpress.org/support/topic-tag/payment-gateway/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [nishanthveema](https://wordpress.org/support/users/nishanthveema/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/regarding-payment-plugin-refund-functionality/#post-14854441)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
