from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class PaymentInfo(Page): form_model = 'player' def vars_for_template(self): participant = self.participant return dict(redemption_code=participant.label or participant.code, total_payoff = self.participant.payoff_plus_participation_fee) page_sequence = [PaymentInfo]