Refund method implement

I wrote this little method to able refund the transaction if someone else need it.