🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@atomicfi/transact-capacitor

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomicfi/transact-capacitor

Capactior plugin to use native sdks from Atomic

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
4
Created
Source

@atomicfi/transact-capacitor

Capactior plugin to use native sdks from Atomic

Install

npm install @atomicfi/transact-capacitor
npx cap sync

API

The Transact Capacitor plugin interface.

presentTransact(...)

presentTransact(options: PresentTransactOptions) => Promise<TransactResult>

Launch a Transact flow. Resolves when the flow finishes or is closed.

ParamType
optionsPresentTransactOptions

Returns: Promise<TransactResult>

hideTransact()

hideTransact() => Promise<void>

Programmatically hide the Transact overlay.

pauseTransact(...)

pauseTransact(options?: PauseTransactOptions | undefined) => Promise<void>

Pause the active Transact session, dismissing the UI while preserving session state so it can be resumed later with {@link resumeTransact}.

ParamType
optionsPauseTransactOptions

resumeTransact(...)

resumeTransact(options?: ResumeTransactOptions | undefined) => Promise<void>

Resume a previously paused Transact session.

ParamType
optionsResumeTransactOptions

resolveDataRequest(...)

resolveDataRequest(options: DataRequestResponse) => Promise<void>

Respond to an onDataRequest event with card or identity data.

ParamType
optionsDataRequestResponse

addListener('onInteraction', ...)

addListener(eventName: 'onInteraction', listenerFunc: (event: InteractionEvent) => void) => Promise<PluginListenerHandle>
ParamType
eventName'onInteraction'
listenerFunc(event: InteractionEvent) => void

Returns: Promise<PluginListenerHandle>

addListener('onDataRequest', ...)

addListener(eventName: 'onDataRequest', listenerFunc: (event: DataRequestEvent) => void) => Promise<PluginListenerHandle>
ParamType
eventName'onDataRequest'
listenerFunc(event: DataRequestEvent) => void

Returns: Promise<PluginListenerHandle>

addListener('onAuthStatusUpdate', ...)

addListener(eventName: 'onAuthStatusUpdate', listenerFunc: (event: AuthStatusUpdateEvent) => void) => Promise<PluginListenerHandle>
ParamType
eventName'onAuthStatusUpdate'
listenerFunc(event: AuthStatusUpdateEvent) => void

Returns: Promise<PluginListenerHandle>

addListener('onTaskStatusUpdate', ...)

addListener(eventName: 'onTaskStatusUpdate', listenerFunc: (event: TaskStatusUpdateEvent) => void) => Promise<PluginListenerHandle>
ParamType
eventName'onTaskStatusUpdate'
listenerFunc(event: TaskStatusUpdateEvent) => void

Returns: Promise<PluginListenerHandle>

addListener('onFinish', ...)

addListener(eventName: 'onFinish', listenerFunc: (event: FinishEvent) => void) => Promise<PluginListenerHandle>
ParamType
eventName'onFinish'
listenerFunc(event: FinishEvent) => void

Returns: Promise<PluginListenerHandle>

addListener('onClose', ...)

addListener(eventName: 'onClose', listenerFunc: (event: CloseEvent) => void) => Promise<PluginListenerHandle>
ParamType
eventName'onClose'
listenerFunc(event: CloseEvent) => void

Returns: Promise<PluginListenerHandle>

addListener('onLaunch', ...)

addListener(eventName: 'onLaunch', listenerFunc: () => void) => Promise<PluginListenerHandle>
ParamType
eventName'onLaunch'
listenerFunc() => void

Returns: Promise<PluginListenerHandle>

removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

TransactResult

Result returned when a Transact flow finishes or is closed.

PropTypeDescription
finishedRecord<string, any>Present when the flow completed successfully.
closedRecord<string, any>Present when the flow was closed by the user.
errorstringError message if the flow failed to launch.

PresentTransactOptions

Options for {@link TransactPluginPlugin.presentTransact}.

PropTypeDescription
configTransactConfigThe Transact configuration.
environmentTransactEnvironmentOptionEnvironment to connect to. Pass Environment.PRODUCTION / Environment.SANDBOX (or the plain string), or a TransactEnvironment object for custom URLs. Defaults to production.
presentationStyle'formSheet' | 'fullScreen'iOS only. Modal presentation style.
debugbooleanEnable debug mode. Forwards native debug logs to console.log and makes the Transact webview inspectable (iOS: WKWebView via Safari Web Inspector; Android: WebView via chrome://inspect). Logs print automatically — no listener required.

TransactConfig

Top-level configuration object for a Transact session.

Properties are grouped by scope compatibility:

  • SharedpublicToken, scope, tasks, theme, language, deeplink, metadata
  • UserLink-onlylinkedAccount, search, handoff, experiments, customer, features, sessionContext, conversionToken, inSdk
  • PayLink-onlydeferredPaymentMethodStrategy
PropTypeDescription
publicTokenstringRequired. Public token returned from AccessToken creation.
scopeScopeTypeRequired. Product scope — 'user-link' or 'pay-link'.
tasksTransactTask[]Required. Task operations to execute. Operations differ per scope.
themeTransactThemeShared. Visual theme customization.
languageLanguageTypeShared. Display language — 'en' or 'es'. Defaults to 'en'.
deeplinkTransactDeeplinkShared. Deeplink into a specific step in the Transact flow.
metadataRecord<string, string>Shared. Custom key-value pairs returned in webhook events.
linkedAccountstringUserLink-only. Linked account ID for immediate authentication.
searchTransactSearchUserLink-only. Search filtering by company tags.
handoffHandoffType[]UserLink-only. Views to hand off to the host app via SDK events.
experimentsTransactExperimentsUserLink-only. Override feature flags from the Atomic Console.
customerTransactCustomerUserLink-only. Override the customer name displayed in the UI.
featuresTransactFeaturesUserLink-only. Feature toggles.
sessionContextstringUserLink-only. Optional session context string.
conversionTokenstringUserLink-only. Token for conversion tracking.
inSdkbooleanUserLink-only. When false, removes SDK-dependent UI elements. Defaults to true.
deferredPaymentMethodStrategyDeferredPaymentMethodStrategyTypePayLink-only. Strategy for providing deferred payment method data. - 'sdk' — Respond via the native resolveDataRequest method. - 'api' — Send data via the Update User API endpoint.

TransactTask

A single task in the Transact workflow.

  • operation — Shared (required). Operations differ by scope.
  • distribution, onComplete, onFailUserLink-only.
PropTypeDescription
operationOperationTypeRequired. The task operation — see {@link Operation} for scope-specific values.
distributionTransactDistributionUserLink-only. Deposit distribution settings. Only meaningful with deposit operation.
onComplete'continue' | 'finish'UserLink-only. Action on task success: 'continue' or 'finish'. Defaults to 'continue'.
onFail'continue' | 'finish'UserLink-only. Action on task failure: 'continue' or 'finish'. Defaults to 'continue'.

TransactDistribution

UserLink-only. Deposit distribution settings for the deposit operation. Enforces deposit configuration and eliminates incompatible search results.

PropTypeDescription
type'total' | 'fixed' | 'percent'Distribution type: 'total', 'fixed', or 'percent'.
amountnumberDollar amount (for 'fixed') or percentage of paycheck (for 'percent').
canUpdatebooleanIf true, the user can override the default amount. Defaults to false.

TransactTheme

Visual theme customization for the Transact UI.

PropTypeDescription
brandColorstringAny valid CSS color value for buttons and accent elements.
overlayColorstringAny valid CSS background-color value for the modal overlay.
darkbooleanEnable dark mode.
displaystringSet to 'inline' to render inside a container element instead of as a modal.
navigationOptionsTransactNavigationOptionsNavigation bar element visibility.

TransactNavigationOptions

Controls for navigation bar element visibility.

PropTypeDescription
showBackButtonbooleanWhether the back button is visible. Defaults to true.
showBackButtonTextbooleanWhether a text label appears next to the back button. Defaults to false.
showCloseButtonbooleanWhether the close/exit button is displayed. Defaults to true.

Deeplink configuration to navigate directly to a specific step.

Both login-company and search-company are supported by UserLink and PayLink.

PropTypeDescription
stepStepTypeThe step to navigate to — 'login-company' or 'search-company'.
companyIdstringCompany ID to deeplink into.
appAppTypePayLink manage-only. App to deeplink into — see {@link App}.
paymentsstring[]PayLink manage-only. Payment IDs to target.
accountIdstringPayLink manage-only. Account ID to target.

TransactSearch

UserLink-only. Search filtering by company tags.

PropTypeDescription
tagsTagType[]Filter companies by tags.
excludedTagsTagType[]Exclude companies matching these tags.
ruleIdstringIdentifier for a search experience defined in the Atomic Console.

TransactExperiments

UserLink-only. Override feature flags from the Atomic Console.

PropTypeDescription
fractionalDepositsbooleanOverride the Fractional Deposit feature flag value.

TransactCustomer

UserLink-only. Override the customer name displayed in the Transact UI.

PropTypeDescription
namestringCustomer name shown in the UI.

TransactFeatures

UserLink-only. Feature toggles for the Transact session.

PropTypeDescription
fractionalDepositsbooleanEnable or disable fractional (decimal) deposit amounts.
customSearchbooleanEnable or disable custom search functionality.

TransactEnvironment

Environment configuration for connecting to Atomic services.

PropTypeDescription
environmentEnvironmentTypeEnvironment target: 'production', 'sandbox', or 'custom'.
transactPathstringCustom Transact URL. Required when environment is 'custom'.
apiPathstringCustom API URL. Required when environment is 'custom'.

PauseTransactOptions

Options for {@link TransactPluginPlugin.pauseTransact}.

PropTypeDescription
animatedbooleanWhether the pause animation should play. Defaults to true.

ResumeTransactOptions

Options for {@link TransactPluginPlugin.resumeTransact}.

PropTypeDescription
animatedbooleanWhether the resume animation should play. Defaults to true.

DataRequestResponse

Response payload for resolving an onDataRequest event.

PropTypeDescription
cardCardDataPayment card data.
identityIdentityDataIdentity data.

CardData

Payment card information for resolving data requests.

PropTypeDescription
numberstringFull card number.
expirystringCard expiration date.
cvvstringCard verification value.

IdentityData

Identity information for resolving data requests.

PropType
firstNamestring
lastNamestring
postalCodestring
addressstring
address2string
citystring
statestring
phonestring
emailstring

PluginListenerHandle

PropType
remove() => Promise<void>

InteractionEvent

Payload for the onInteraction event.

PropTypeDescription
namestringName of the interaction.
valueanyInteraction value.

DataRequestEvent

Payload for the onDataRequest event.

PropTypeDescription
fieldsstring[]Requested data fields.
taskIdstring
userIdstring
identifierstring
taskWorkflowIdstring
externalIdstring

AuthStatusUpdateEvent

Payload for the onAuthStatusUpdate event.

PropTypeDescription
statusstringAuthentication status.
companyTransactCompanyEventCompany associated with the authentication.

TransactCompanyEvent

Company information included in event payloads.

PropType
_idstring
namestring
branding{ color: string; logo: { url: string; backgroundColor?: string; }; }

TaskStatusUpdateEvent

Payload for the onTaskStatusUpdate event.

PropTypeDescription
taskIdstring
productstring
statusTaskStatusTypeCurrent task status.
failReasonFailReasonTypeReason for failure. Only present when status is 'failed'.
companyTransactCompanyEventCompany associated with the task.
depositDataDepositDataEventUserLink — Deposit data returned on successful deposit operations.
switchDataSwitchDataEventPayLink — Payment method data returned on successful switch operations.
managedBy{ company: TransactCompanyEvent; }Present when a task is managed by another company.

DepositDataEvent

UserLink — Deposit data from a successful deposit operation.

PropType
accountTypestring
distributionAmountnumber
distributionTypestring
lastFourstring
routingNumberstring
titlestring

SwitchDataEvent

PayLink — Payment method data from a successful switch operation.

PropType
paymentMethod{ type: string; brand?: string; expiry?: string; lastFour?: string; accountType?: string; routingNumber?: string; accountNumberLastFour?: string; }

FinishEvent

Payload for the onFinish event.

PropType
taskIdstring

CloseEvent

Payload for the onClose event.

PropType
reasonstring

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

ScopeType

(typeof Scope)[keyof typeof Scope]

OperationType

(typeof Operation)[keyof typeof Operation]

LanguageType

(typeof Language)[keyof typeof Language]

StepType

(typeof Step)[keyof typeof Step]

AppType

(typeof App)[keyof typeof App]

TagType

(typeof Tag)[keyof typeof Tag]

HandoffType

(typeof Handoff)[keyof typeof Handoff]

DeferredPaymentMethodStrategyType

(typeof DeferredPaymentMethodStrategy)[keyof typeof DeferredPaymentMethodStrategy]

TransactEnvironmentOption

Environment to connect to. Pass Environment.PRODUCTION / Environment.SANDBOX (or the plain 'production' / 'sandbox' string) as a shorthand, or a TransactEnvironment object (required for custom URLs).

typeof Environment.PRODUCTION | typeof Environment.SANDBOX | TransactEnvironment

EnvironmentType

(typeof Environment)[keyof typeof Environment]

TaskStatusType

(typeof TaskStatus)[keyof typeof TaskStatus]

FailReasonType

(typeof FailReason)[keyof typeof FailReason]

Keywords

capacitor

FAQs

Package last updated on 13 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts