from ._builtin import Page author = 'Karthik' class Payment(Page): def vars_for_template(self): player_label = self.player.participant.code if self.player.participant.label: player_label = self.player.participant.label return { 'label': player_label, 'payoff': self.player.participant.vars['final_payoff'], # 'fee': self.session.config.get('participation_fee'), # 'total': self.participant.payoff + self.session.config.get('participation_fee'), 'code': self.player.participant.code } page_sequence = [ Payment ]