Added CreateTransaction functions with the correct parameters for each payment type + fixed some bugs