1.0.2 • Published 24 days ago
@techdacxi/capacitor-persona-plugin v1.0.2
capacitor-persona
Native Persona integration into the web application using SDK
Install
npm install capacitor-persona-plugin
npx cap sync
API
initialize(...)
initialize(options: PresentPersonaOptions) => Promise<void>
Initialize the Persona Widget with an Template ID
Param | Type |
---|---|
options | PresentPersonaOptions |
Since: 0.1.0
presentPersonaFlow()
presentPersonaFlow() => Promise<InquiryResult>
Calls the Persona Executor to present the Inquiry Flow
Returns: Promise<InquiryResult>
Since: 0.1.0
Interfaces
PresentPersonaOptions
Prop | Type | Description | Default | Since |
---|---|---|---|---|
templateId | string | The template ID corresponds to a pre-set configuration and determines how the flow is customized. | 1.0.0 | |
referenceId | string | A string unique to every user that is used to identify their Persona account in a way that makes sense to your business key to use in the flow | 1.0.2 | |
isSandbox | boolean | Whether the Inquiry is going to be in Sandbox mode or Production | false (production mode) | 1.0.0 |
InquiryResult
Prop | Type | Description | Since |
---|---|---|---|
status | string | The status of the Inquiry Result It can be: Success, Failed, Cancelled and Error | 1.0.0 |
inquiryId | string | The Inquiry identification key associated with the result Only available if the Inquiry is successful | 1.0.0 |
errorMessage | string | The error message, in case it of an Error status | 1.0.0 |