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

Commit

Permalink
Dummy payment instruction method.
Browse files Browse the repository at this point in the history
  • Loading branch information
aandis authored and chadwhitacre committed Jan 19, 2017
1 parent 475486b commit 477cfb7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gratipay/models/package/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ def set_team(self, team):
""", locals())
self.set_attributes(team=team)

def set_payment_instruction(self, participant, amount):
team_id = self.team_id
if team_id:
team = Team.from_id(team_id)
participant.set_payment_instruction(team, amount)
else:
# TODO Add to pledges when we introduce it.
pass


class NotAllowed(Exception):
pass

0 comments on commit 477cfb7

Please sign in to comment.