Skip to content
Snippets Groups Projects
Unverified Commit 3d04a281 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Add expected total tokens to the voucher model

This makes the database responsible for remembering how many tokens we expect
to get for a voucher, rather than the in-memory Python state or the code.

As a result, we can resume redemption knowing the correct number of tokens
after a process restart and without relying on the PaymentController's default
token count to have remained unchanged.
parent 69ffea01
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment