Hello, I am developing a JavaScript application that enables users to make Paynow payments. The issue I have is that I need a way to log a transaction status message (OK or Error) depending on whether the transaction was successful or not, and then execute a function based on the returned message. This will occur in an IF statement.
Is there anyway I can get the status message in my code, perhaps after a promise has executed?