Configuration Options
You can customize the behavior of the widget by passing various options into the tg("configure") command.
Option | Type | Default Value | Max Length | Description |
|---|---|---|---|---|
| string | Your public sandbox or production API key. | ||
| array | An array of items including the cost for each item the customer would like to receive a quote. Each item's cost should include any fees or taxes associated with that item. | ||
| string | 12 | The cost of the item, eg. | |
| string | 255 | An item-level internal reference number within your system. | |
| object | A metadata object of the event (e.g. reservation, booking, concert) associated with the item. | ||
| string | 255 | Name or short description of the event. | |
| date | Start date of event in | ||
| time | Start time of event in hh:mm format. (UTC) | ||
| string | USD | 3 | The 3-letter ISO currency code of the transaction.
|
| boolean |
| Clear the customer's persisted selection on | |
| string |
| 255 | The country/language code combination that allows internationalized verbiage to display in the widget, if available.
|
| string | 255 | A top-level internal reference number within your system. e.g., a cart or order ID if available. | |
| boolean |
| Persist the customer's opt-in or opt-out selection to the browser's | |
| boolean |
| Use Teak's sandbox environment for testing purposes. Requires a sandbox API key. |
Todo
-
Add the required configuration options:
-
apiKey -
items -
referenceNumber
-
Updated 7 months ago
