Add before_create_transaction template method