Dislay error message if payment transaction not success.
Refactor code