reveng bank pay logic