Skip to main content

VCEE Payment App for oTree

Project description

Quick start

  1. Install the package

    $ pip install otree-vcee-payment
  2. Add the app to the end of your session config, e.g.:

    SESSION_CONFIGS = [
      dict(
          name="experiment",
          display_name="Some Experiment",
          num_demo_participants=1,
          app_sequence=["experiment", "result", "vceepayment"],
      ),
    ]
  3. Download the payment file from the otree admin interface.

Options

You can add the options to the session config, e.g.:

SESSION_CONFIGS = [
  dict(
      name="experiment",
      display_name="Some Experiment",
      num_demo_participants=1,
      encrypt_payment_file=True,
      disable_waiting_for_others=True,
      app_sequence=["experiment", "result", "vceepayment"],
  ),
]

disable_waiting_for_others

default: True

The default behavior is that participants are directly able to fill out their payment information as soon as they have completed everything else. Careful, this means only the amount earned up until that point in time is displayed and saved. Setting disable_waiting_for_others to false forces every participant to wait for the last participant to complete everything before starting the payment app. For more control of when a subject should be shown the payment app, set disable_waiting_for_others=True and add a WaitPage into the last app before vceepayment with the desired options.

encrypt_payment_file

default: False

Encrypts the payment file. Only use this if you know what you are doing.

Remarks

  • Currently, the app requires a persistent file system to be run on. I.e., it does not work with an ephemeral filesystem (like Heroku).

  • The payment file persists between sessions. This means you only need to download the payment file after the last session.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otree-vcee-payment-0.9.2.tar.gz (159.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

otree_vcee_payment-0.9.2-py3-none-any.whl (161.2 kB view details)

Uploaded Python 3

File details

Details for the file otree-vcee-payment-0.9.2.tar.gz.

File metadata

  • Download URL: otree-vcee-payment-0.9.2.tar.gz
  • Upload date:
  • Size: 159.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for otree-vcee-payment-0.9.2.tar.gz
Algorithm Hash digest
SHA256 aa2aac7df6f21203ae4eb13b194c93c5daea233ad2993f3a8d185547d51d6279
MD5 3f5db00d3b34e34826083c32867ff88c
BLAKE2b-256 a216db425b4dd1652a919c810091ae5b5968c0e961d0e9c4cc8089ccaaadb225

See more details on using hashes here.

File details

Details for the file otree_vcee_payment-0.9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for otree_vcee_payment-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f87433ec4654dd196923030cba97bb130173b639b7a9f1ee6e447db2254bf934
MD5 5aa03c39a8df4b8d66fef993c3798c25
BLAKE2b-256 a729eee426d7a58efdb90b3e1592a47a118af020cfd68a36e40b683783bbf7b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page