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): return{ 'currencypayoff':self.participant.payoff.to_real_world_currency(self.session), 'totalpayoff':self.participant.payoff.to_real_world_currency(self.session)+self.session.participation_fee, 'paying_task': self.session.config['paying_task'], 'paying_round': self.session.config['paying_round'], } page_sequence = [PaymentInfo]