This module registers with a Vue app the TikiReceipt component
and a singleton instance of the TikiService. Define a TikiOptions.Options
object to specify licensing keys, styling, and content overrides.
This library is available for both Vue 2 (2.7.14) and Vue 3 (>=3.0.0).
For Vue 3 use the package: @mytiki/receipt-capacitor.
For Vue 2 use the package @mytiki/receipt-capacitor-vue2.
Once the TikiService is initialized, add the TikiReceipt component to your template and set the html boolean property present to display the UI (e.g. :present="true").
NOTE: present implements a two-way binding
and for most use cases we recommend using a named (Vue 3) v-model instead of a standard property binding.
This ensures the Ref stays in-sync with the UI state —the user can close the popup at anytime.
This module registers with a Vue app the TikiReceipt component and a singleton instance of the TikiService. Define a TikiOptions.Options object to specify licensing keys, styling, and content overrides.
This library is available for both Vue 2 (2.7.14) and Vue 3 (>=3.0.0).
@mytiki/receipt-capacitor
.@mytiki/receipt-capacitor-vue2
.Example
Vue >=3.0.0 Registration
Example
Vue >=2.7.14 Registration
Next, add the stylesheet for the component to your primary stylesheet (e.g.
main.css
) Example: For Vue >=3.0.0Example: For Vue 2.7.14
Once the TikiService is initialized, add the TikiReceipt component to your template and set the html boolean property
present
to display the UI (e.g.:present="true"
).NOTE:
present
implements a two-way binding and for most use cases we recommend using a named (Vue 3)v-model
instead of a standard property binding. This ensures the Ref stays in-sync with the UI state —the user can close the popup at anytime.Example
For Vue >=3.0.0:
Example
For Vue >=2.7.14: