Use correlationID
Get and set a correlation ID for Tokenization tracking.
Overview
Each Tokenization process has an associated correlationID that you can share with Thales to help with troubleshooting.
This identifier can be obtained in two ways:
From a successful eligibility check or from a Tokenization error.
You can also assign your own custom
correlationIDwhen callingcheckEligibility().
Available since: 6.15.0
SDK integration
Get correlationID from checkEligibility()
After successful
checkEligibility()After a successful eligibility check, read
acceptanceData.correlationID.Store this value if you need to trace the same Tokenization process later.
After error on
checkEligibility()Read or store
correlationIDas soon as the error is caught.
The following example explains how to get correlationID checkEligibility() :
mgCardEnrollmentService.checkEligibility(
eligibilityData,
instrumentData,
object : CardEligibilityListener {
override fun onSuccess(
termsAndConditions: TermsAndConditions,
issuerData: IssuerData
) {
val correlationId = termsAndConditions.correlationId
Log.d(TAG, "Correlation ID: $correlationId")
}
override fun onError(error: MobileGatewayError) {
val correlationId = error.correlationId
Log.e(TAG, "Digitization failed. Correlation ID: $correlationId")
}
}
)ProvisioningServiceError also provides getCorrelationId().
Set a custom correlationID
You can set correlationID only in checkEligibility().
The following checkEligibility() variants support this parameter.
Use a custom value when you want to trace a Tokenization process across the issuer backend, the digital wallet application, and Thales logs.
You can also use your own identifier format, for example:
Set a custom correlationID with instrument data
Set a custom correlationID with a pushSessionID
Related pages
Last updated
Was this helpful?