These are manually resolved via scripts and the admin panel.
This is the easiest way to get unpaid tickets into the system, but there's currently no easy way to test reconciliation.
This can only be tested with their live environment. See docs/wise.md
for details.
This is the easiest method to "pay" for a ticket when you're developing. The details for a successful payment are:
- email: whatever you want
- card number: 4242 4242 4242 4242
- expiry: anything in the future, e.g. 12/34
- cvc: anything, e.g. 123
If you want to test specific modes please check their documentation
- Sign up for stripe. You can skip/cancel through without giving bank details
- Get the secret & public api keys https://dashboard.stripe.com/test/apikeys
- Set
STRIPE_SECRET_KEY
&STRIPE_PUBLIC_KEY
using these keys - install stripe cli
brew install stripe/stripe-cli/stripe
stripe login
- Get an ngrok.com account
- install the ngrok client (
brew install ngrok/ngrok/ngrok
) ngrok ngrok config add-authtoken <some token>
(the ngrok dashboard should show the token)ngrok http http://localhost:2342
this should show the ngrok forwarding domain for you (something like https://ffff-111-22-333-44.ngrok-free.invalid)stripe webhook_endpoints create --url https://ffff-111-22-333-44.ngrok-free.invalid/stripe-webhook --api-version 2020-08-27 --enabled-events '*'
We are currently using version 2020-08-27 ignore this for no
stripe listen --forward-to localhost:2342/stripe-webhook
(leave it running)- set
STRIPE_WEBHOOK_KEY
to the value returned from the previous (will startwhsec_
) - you should be able to 'buy' tickets using test cards
- the
stripe listen
terminal should show successful webhook calls
Create test users with:
./flask dev cfp_data
and enable BYPASS_LOGIN
in config. You can then log in using, e.g. /login/admin@test.invalid
and navigate to /admin/
.