Refunds are done from your PayPal or Google Checkout account. We remove the affiliate share for that sale and also disable the download link (if applicable).
If you are using Authorize.Net, then we can't take any action for a refund as we are not notified about refunds.