Overview
Set the PrimerHeadlessUniversalCheckoutRawDataManagerListener
in order to receive different callbacks from Primer SDK.
onValidationChanged
1
fun onValidationChanged(isValid: Boolean, errors: List<PrimerInputValidationError>)
kotlin
copy
Returns whether the rawData
set by setRawData is valid, and all the errors that occurred during validation.
Parameters
isValidBooleanRequired
Returns true
in case raw data is valid, otherwise false
.
errors List<PrimerInputValidationError>Required
Returns all of the validation errors for a raw data.PrimerInputValidationError
Properties
errorIdStringRequired
A unique error identifier.descriptionStringRequired
A error description.inputElementTypePrimerInputElementTypeRequired
A input element association with the error returned.diagnosticsIdStringRequired
A unique diagnostics id for the given error.onMetadataChanged
Returns metadata for the current data set by using the setRawData. Check the section below for the metadata types that can be returned.
1
fun onMetadataChanged(metadata: PrimerPaymentMethodMetadata)
kotlin
copy