Overview
Set the PrimerHeadlessUniversalCheckoutCardComponentsManagerDelegate
in order to receive different callbacks from your CardComponentsManager
.
cardComponentsManager(_:isCardFormValid:)
This method will return whether the card form managed by the manager is valid.
1
func cardComponentsManager(_ cardComponentsManager: PrimerHeadlessUniversalCheckout.CardComponentsManager, isCardFormValid: Bool)
swift
copy
Parameters
cardComponentsManagerCardComponentsManagerRequired
The instance of the CardComponentsManager
calling the delegate method.
isCardFormValidBoolRequired
Returns true
in case the entered form data is valid, otherwise false
.