Can I get a http post to another server when we refund a user?

Hi,

I want to add refund button to my website and when a user click on the refund button, I want to refund the amount to user and cancel his/her subscription from my website.
Can anyone suggest me how to accomplish this by using infusionsoft phpSdk.

Using the api you can add a row to the payment table that would represent a refund: