Refactored the gocardless webhook controller and introduced a payment repository