from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class PaymentInfo(Page): def vars_for_template(self): participant = self.participant payoff = self.participant.payoff final_payoff = payoff + 200 return dict(redemption_code=participant.label or participant.code, finalpayoff=final_payoff) page_sequence = [PaymentInfo]