-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PP-11638 Improve logging for handling wallet auth response (#3764)
Log the "wallet" on log lines if it is available on the charge. This will only be present post-authorisation. Log a line when we are handling the authorisation response from connector. This is so we can easily validate that the redirect occurs in the client-side JavaScript after the authorisation is completed. Stop trying to send a log to the server from the client-side JavaScript when the authorisation has been processed. There is no garuantee this will complete before the page redirects meaning we were dropping some log lines. We could move the redirect to a `then` clause to execute after the promise to send the log message has resolved, but this would slow down the page redirect, which is undesirable. Tidy up some of the client-side JavaScript slightly. The `init` function in `web-payments/index.js` no longer takes any parameters.
- Loading branch information
1 parent
7418a51
commit d3d4c73
Showing
7 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters