Partial refunds from the merchant dashboard #1001

Opentmbeki wants to merge 2 commits into main from feat/partial-refunds· opened 2 days ago
+53−3
tmbeki commented 2 days agoAuthor

What

Merchants currently email support to refund a charge. This adds a "Refund" page on the charge detail screen where they can refund all or part of a charge themselves.

How

  • RefundForm with an amount and an optional reason
  • refund_charge view calls the gateway, records a Refund row and updates the charge status
  • New URL charges/<id>/refund/

Testing

Refunded a 50.00 test charge in two steps against the gateway sandbox.

Closes #612

tmbeki added 2 commits 2 days ago
Add RefundFormba654d8
Add refund_charge view and routebb654f1

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