Add partial refund dialog to the payment details page #4001

Opentnguyen wants to merge 2 commits into main from feat/partial-refund-dialog· opened 2 days ago
+74−0
tnguyen commented 2 days agoAuthor

What

Support agents currently have to ask engineering to issue partial refunds. This adds a Refund button and a small dialog to the payment details page.

How

  • RefundDialog: amount (in major units) and an optional reason, posts to POST /payments/:id/refunds
  • PaymentDetails: Refund button, list of existing refunds under the payment

Testing

Refunded a few test-mode payments from the staging dashboard, including a partial one.

tnguyen added 2 commits 2 days ago
Add RefundDialog574d7df
Show refunds list and Refund button on PaymentDetails584d7f8

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