updated balanced_payment.rb to address multiple payment use cases