tz-business-profile
v0.0.61
Published
This plugin is to be used by tranzak **SAAS** mini programmes to show business info all apps irrespective of the project or environment.
Downloads
73
Keywords
Readme
Tranzak business profile mini programme
This plugin is to be used by tranzak SAAS mini programmes to show business info all apps irrespective of the project or environment.
Usage
Installation
$ npm install tz-business-profile
In your main.js
file, import and register the plugin as shown below
import { createApp } from 'vue'
import TzBusinessProfile from 'tz-business-profile';
const myApp = createApp(App);
myApp.use(TzBusinessProfile);
myApp.mount('#app')
Implementation
<tz-business-profile lang="fr" app-id="ap3viyy15rg1xz" org-id="tz32elknz06ic8el" :token="token" />
Props
|Prop |Description | Value|
|----------------|-------------------------------|----------|
|lang
|This is the language to be used when rendering the component | String
(en
OR fr
), default en
|
| appId | this is the app id of the selected app which should use this component | String (Required)|
| orgId | this is the Tranzak id of the organization this app belongs to | String (Required)|
| token | This is will be used to determine if the user is logged in or not in order to enable them to like a mini programme | String
Dependencies
|Package |Description
|---------------------|---------------------------------------------------|
|Tz Payment SDK
|This is used when making payments from the app and is usually already available in all Tz MPs |
Url Params
|Param | Description |
|------------|------------|
|hideButtons
|Send this a query string to hide the new app button and update app buttons. Used in situations like merchant solutions to view app info without the update buttons showing up.|
|isDraft
|Should be initialized to true
so the draft (unapproved) version of the app is loaded. This is useful in cases where updates have been made and is under review.