Currently the code in the TransactionController is quite complex.
It should be refactored into a single InnkeepTransactionService which cleanly handles the complete transaction creation logic and logs/reports errors accordingly.
The TransactionController should also return a TransactionResult instead of a simple receipt, letting the client know where potential errors occurred.
Currently the code in the TransactionController is quite complex. It should be refactored into a single InnkeepTransactionService which cleanly handles the complete transaction creation logic and logs/reports errors accordingly.
The TransactionController should also return a TransactionResult instead of a simple receipt, letting the client know where potential errors occurred.