fix exception due to mass assignment of amount and create unique transaction_id