Skip to content
This repository has been archived by the owner on Jan 17, 2018. It is now read-only.

Generating a payout

Irio Musskopf edited this page Mar 6, 2014 · 2 revisions

For now, we don't have an admin interface to generate a Payout. Yes, you must do it acessing the server.

Just keep in your mind: a payout won't work if the project's owner doesn't have a bank account registered in the system!

To do a payout, follow this process:

  1. Access you server. Using Heroku, this will do the work:
$ heroku run console -a <you_heroku_app_name>
  1. Inside the server, complete the payout. You just need to know which project you're dealing with.
# Define the project
project  = Project.find(some_id_that_you_should_now)

customer = Neighborly::Balanced::Customer.new(project.user, {})
payout   = Neighborly::Balanced::Bankaccount::Payout.new(customer, project)
payout.complete!
Clone this wiki locally