from otree.api import * doc = """ This application provides a webpage instructing participants how to get paid. Examples are given for the lab and Prolific. """ class Constants(BaseConstants): name_in_url = 'payment_info' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # FUNCTIONS # PAGES class PaymentInfo(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): participant = player.participant return participant.consent @staticmethod def js_vars(player): return dict( completionlink=player.subsession.session.config['completionlink'] ) page_sequence = [PaymentInfo]