Goal of V1 is to support adding line items to an order, auto-charging final payment (including notification to organizers).
To reduce risk, we will have a flag per order to turn auto-charging on or off. This can be used to show or hide the payments tab as well.
- BE - Add an
autocharge_balance
flag to orders. There won't be a way to toggle this in admin for now. We will update it manually if needed. Defaults tofalse
. Set totrue
when:- all the others steps here are finished
- event is outside of lead time (i.e. final changes date is in the future)
- other criteria tbd (a single event template at first; non-shipping events?)
- BE - Add service fee line item whenever order is created. Update service fee line item whenever other line items are added, deleted, or edited.
- BE - Add a way for ops to add (not edit or delete for v1) line items.
- BE - Cron job to email payer 24 hours before order due date that they will be auto-charged balance
- BE - Cron job to auto-charge balance on order due date. Also need to send confirmation email.
- BE - Create a query that exposes payment data. Probably
order.payments
. Also needs to includeautocharge_balance
flag. - FE - Show payments tab on the "Manage Event" page. Populate using query from #7. Hide if
autocharge_balance
flag on order isfalse
.