Merchants currently email support to refund a card payment and we click the button in the gateway dashboard by hand. This adds a self-serve endpoint.
POST /payments/{payment_id}/refunds
amount
Refund
payment.refunded_amount
Added a test for a partial refund. Also ran a full refund against the gateway sandbox.
b737067
b837080
b937099
Why
Merchants currently email support to refund a card payment and we click the button in the gateway dashboard by hand. This adds a self-serve endpoint.
What
POST /payments/{payment_id}/refundsrefunds the full remaining amount, oramountif given.Refundrow and bumpspayment.refunded_amount.Testing
Added a test for a partial refund. Also ran a full refund against the gateway sandbox.