Hi,
Here's what I did. Note this was an individual decision-making experiment.
Step 1: Create a new session on your Heroku site for the study you wish to run.
If you want N people in total to take the study, you should create a session with M >> N participants. This is to give room for people who time out, do not consent, or return the study.
Step 2: Set up session on otree HR.
Go to
https://otree-hr.herokuapp.com/. If you've not used it before, you'll need to log in and link it to your Heroku site (this is self-explanatory in the interface). Once your Heroku site is linked, click "Prolific", enter the code of the session you just created, and click "add". Once the session is added, click "Configure" and follow the instructions on the page. These are self-explanatory and will guide you on what study link to enter into Prolific so that you can collect Prolific IDs and completion codes.
Step 3: Deploy study on Prolific.
You will be able to view the incoming data on your Heroku site. The first person to start the study will populate participant id 1 in the session, the second person who starts it will be participant id 2 in the session, and so on. If a person starts the study and doesn't finish (e.g. returns it), they still eat up an available use of the link. This is why you should make your session for more than your target number.
Step 4: Payments
Once you're done collecting data, go back to otree HR and click "Payments" in the row of the session you just ran. This will give the Prolific ID and value of participant.payoff for all participants for whom participant.payoff > 0. This is formatted to be copied and pasted into Prolific's bulk bonus payment option. If you plan to use this, just make sure that your participant.payoff variable is generated in a way such that it only equals the bonus payment you want to give participants.
I hope this helps!
Best,
Kim