+/**
+ * \brief Refund a dispense
+ */
+int DispenseRefund(int ActualUser, int DestUser, tItem *Item, int OverridePrice)
+{
+ int ret;
+ int src_acct, price;
+ char *username, *actualUsername;
+
+ src_acct = _GetSalesAcct(Item);
+
+ if( OverridePrice > 0 )
+ price = OverridePrice;
+ else
+ price = Item->Price;
+
+ ret = _Transfer( src_acct, DestUser, price, "Refund");
+ if(ret) return ret;
+
+ username = Bank_GetAcctName(DestUser);
+ actualUsername = Bank_GetAcctName(ActualUser);
+
+ Log_Info("refund '%s' (%s:%i) to %s by %s [cost %i, balance %i]",
+ Item->Name, Item->Handler->Name, Item->ID,
+ username, actualUsername, price, Bank_GetBalance(DestUser)
+ );
+
+ free(username);
+ free(actualUsername);
+
+ return 0;
+}
+