This part implements the api of the payment project