[#41] Allow users to download the user/planting guide for a payment - backend #92
No reviewers
Labels
No labels
Bug
Client: Biosphere Capital
Client: Central Hawkes Bay District Council
Client: Forward Works Viewer
Client: Kea/Kākā Databases
Client: Otorohanga District Council
Stage: Blocked
Stage: Doing
Stage: Peer review / Staging
Stage: Ready
Stage: UAT AT
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lightweight/right-tree#92
Loading…
Reference in a new issue
No description provided.
Delete branch "matt/41-backend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hides the initial questionnaire behind a paywall
This MR is for the backend changes. The individual user flow is:
/apply
and clicks 'Purchase Key'/api/key/purchase
which does the following[A-Z0-9]
/api/key/activate
which does the following/apply?key={KEY}
/api/key/validate
Additonally, the changes allow an admin to bulk create keys via
ActivationKeySet
, which takes a name and integer input and generates that many keys. The admin is then able to sortQuestionnaire
s by theirActivationKeySet
and bulk export depending on how they were generated. This is useful as Wilfred is wanting to sell N keys to a magazine and only export those related to that key set.@satoshi just a quick sanity check as last time. I don't expect you to follow the code from start to finish. Cheers :)
assigned to @satoshi
changed the description
Looks fine for when user completes application in a single session.
Can a user restore session if user purchased a key, redirected to the /apply page but then closed the browser before completing the form?
Yes, the key purchased is included in the invoice sent to them. The key is inputted when redirected for convenience, but the user is able to copy+paste their key from their invoice when revisiting the page. The key is only consumed after the submit step.
approved this merge request