Synchronize the refundPayment() method