Specify types of the preparePayment functionn params