Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP-6501 Add structured logging for authorisation request data #2618

Conversation

alexbishop1
Copy link
Contributor

@alexbishop1 alexbishop1 commented Oct 15, 2020

Add structured logging containing information about the authorisation data sent a gateway when we authorise (in addition to the usual stuff available on the charge).

New fields are "billing_address" (except sandbox), "data_for_3ds" (except sandbox and Stripe), "data_for_3ds2" (ePDQ only) and "worldpay_3ds_flex_device_data_collection_result" (Worldpay only) and have values of either true or false.

The information will match the prose logging introduced in commit 5923a5e with the same caveats.

Add structured logging containing information about the
authorisation data sent a gateway when we authorise (in addition
to the usual stuff available on the charge).

New fields are "billing_address" (except sandbox), "data_for_3ds"
(except sandbox and Stripe), "data_for_3ds2" (ePDQ only) and
"worldpay_3ds_flex_device_data_collection_result" (Worldpay only)
and have values of either true or false.

The information will match the prose logging introduced in commit
5923a5e with the same caveats.
@@ -93,13 +99,19 @@ public AuthorisationResponse doAuthorise(String chargeId, AuthCardDetails authCa
var authorisationRequestSummary = generateAuthorisationRequestSummary(charge, authCardDetails);

// Used by Splunk saved search
logger.info("Authorisation{} for {} ({} {}) for {} ({}) - {} .'. {} -> {}",
var logMessage = String.format(Locale.UK, "Authorisation%s for %s (%s %s) for %s (%s) - %s .'. %s -> %s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice

Copy link
Contributor

@rorymalcolm rorymalcolm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@alexbishop1 alexbishop1 merged commit 4fdd4ae into master Oct 15, 2020
@alexbishop1 alexbishop1 deleted the PP-6501_add_structured_logging_with_information_about_authorisation_data_sent_to_gateways branch October 15, 2020 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants