from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'Payment' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): name_surname = models.StringField(label='Please provide your name and surname') IBAN = models.StringField(label='Please provide your IBAN for the payment') class Payment(Page): form_model = 'player' form_fields = ['name_surname', 'IBAN'] @staticmethod def vars_for_template(player: Player): participant = player.participant return dict(final_payment = max(5,min(participant.payoff_plus_participation_fee(),30))) page_sequence = [Payment]