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.1.tar.gz (159.0 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.1-py3-none-any.whl (160.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for otree-vcee-payment-0.9.1.tar.gz
Algorithm Hash digest
SHA256 ab7f87d2b2164ebbe61ee3678e32e2253a78645e1d8512f3c01f60a6119bcab1
MD5 fb2936c4645242fd5bb70d5c44fa65d0
BLAKE2b-256 654d342a9232fda19328414529b929f8a426ca7d675a37251b770702c8a81cfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for otree_vcee_payment-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abc113b2733d22874f307f012559111fa6dcfd97f20fc9a96350790627ebe599
MD5 e18a0e3742ca0a7450acf1225b8588aa
BLAKE2b-256 224e0c1dd2e2f08ddedd2b89e3137ca3fab2b9b39fd46cea9d402e714bd66aef

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