API GuideDashboard
Home
Payments
Automation
Payment Methods
SDK Reference
Changelog
SDK Reference
OverviewInstallationPrimerPrimerHeadlessUniversalCheckout
METHODS
startsetCheckoutListenersetCheckoutUiListenercleanup
LISTENERS
PrimerHeadlessUniversalCheckoutListenerPrimerHeadlessUniversalCheckoutUiListener
ASSETS MANAGERS
getPaymentMethodAssetsgetPaymentMethodAssetgetCardNetworkImage
NATIVE UI MANAGER
newInstanceshowPaymentMethod
RAW DATA MANAGER
newInstanceconfiguregetRequiredInputElementTypessetListenersetRawDatasubmitcleanup
RAW DATA MANAGER LISTENER
PrimerHeadlessUniversalCheckoutRawDataManagerListener
CARD COMPONENTS MANAGER
newInstancesetCardManagerListenergetRequiredInputElementTypessetInputElementsisCardFormValidsubmit
CARD COMPONENTS MANAGER LISTENER
PrimerCardComponentsManagerListener
PRIMER INPUT ELEMENT LISTENER
PrimerInputElementListener
Common objects

Overview

Set the PrimerCardComponentsManagerListener in order to receive different callbacks from Primer SDK.

onCardValidationChanged

This method will return whether the card form managed by the manager is valid.

1
fun onCardValidationChanged(isCardFormValid: Boolean)
kotlin
copy

Parameters

isCardFormValidBooleanRequired

Returns true in case the entered form data is valid, otherwise false.


Product
AutomationPaymentsObservabilityReconciliationConnections
Developers
Primer DocsAPI ReferenceCommunityService Status
Company
BlogCase StudiesNewsroomTeamCareers
Resources
Press KitTermsPrivacy
DiscordLinkedInTwitterInstagramYouTubeFigma

© Primer 2023

hello@primer.io