Skip to content
Snippets Groups Projects
  • Jean-Paul Calderone's avatar
    3d04a281
    Add expected total tokens to the voucher model · 3d04a281
    Jean-Paul Calderone authored
    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.
    3d04a281
    History
    Add expected total tokens to the voucher model
    Jean-Paul Calderone authored
    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.