Won't `refundedPaymentId` already be correctly set, as relied on, on line 87?