API GuideDashboard
Home
Payments
Automation
Observability
Reconciliation
Payment Methods
Fraud Providers
SDK Reference
Changelog
SDK Reference
Overview
Installation
Primer
PrimerHeadlessUniversalCheckout
METHODS
start
setCheckoutListener
setCheckoutUiListener
cleanup
LISTENERS
PrimerHeadlessUniversalCheckoutListener
PrimerHeadlessUniversalCheckoutUiListener
ASSETS MANAGERS
getPaymentMethodResources
getPaymentMethodResource
getPaymentMethodAssets
getPaymentMethodAsset
getCardNetworkAsset
getCardNetworkImage
NATIVE UI MANAGER
newInstance
showPaymentMethod
RAW DATA MANAGER
newInstance
configure
getRequiredInputElementTypes
setListener
setRawData
submit
cleanup
RAW DATA MANAGER LISTENER
PrimerHeadlessUniversalCheckoutRawDataManagerListener
NOL PAY MANAGER
init
provideNolPayLinkedCardsComponent
provideNolPayNfcComponent
provideNolPayLinkCardComponent
provideNolPayUnlinkCardComponent
provideNolPayPaymentComponent
COMPONENT WITH REDIRECT MANAGER
init
provide
KLARNA HEADLESS MANAGER
init
provideKlarnaComponent
ACH HEADLESS MANAGER
init
provide
VAULT MANAGER
newInstance
fetchVaultedPaymentMethods
deleteVaultedPaymentMethod
validate
startPaymentFlow
Logging
Common objects

In order to remove the provided listeners and stop any API calls performed by the manager, make sure to call the cleanup function.

1
fun cleanup()
kotlin
copy

Product
Universal CheckoutPayment WorkflowsObservabilityApps & Integrations
Developers
Primer DocsAPI ReferenceService Status
Company
BlogCase StudiesTeamCareers
Resources
TermsPrivacy
LinkedInYouTubeSpotify

© Primer 2025

hello@primer.io