• 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 3 years, 2 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @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

    (@nishanthveema)

    Hi @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.