Per-card spending limits #1001

Opendkamau wants to merge 2 commits into main from feat/card-spending-limits· opened yesterday
+70−0
dkamau commented yesterdayAuthor

What

Cardholders can set a daily or monthly spending limit on each of their cards from the portal.

How

  • SpendingLimitForm validates period and amount
  • edit_limit creates or updates the limit and notifies the cardholder
  • remove_limit clears a limit, remaining_limit feeds the progress bar on the card page
  • Routes under cards/<id>/limit/

Testing

Set a monthly limit on my test card and watched the progress bar move after a sandbox purchase.

dkamau added 2 commits yesterday
Add SpendingLimitForm742f354
Add limit views and routes732f33b

Review required

Review the changes, then submit to get graded.

Some checks haven’t completed yet

1 check: dojo / review-grader

Keyboard shortcuts

Site-wide

Focus the search bar
/
Show this dialog
?

Pull request

Move to the next file
j
Move to the previous file
k
Filter changed files
t
Comment on the selected lines
c
Select a range of lines
Shiftclick