Configuration inputs can be set in your Ventrata checkout solution by doing one of two things:
Update Data-Config Attribute - by adding the below piece of code, replacing the
input
with the name of one of the supported inputs and specifying its value, see the configuration table below. Include multiple inputs separated by a comma,
."input1" : "value", "input2" : "value"
Add input to Script or Button - add the input to your data-config for script or button in the below format. Include multiple inputs separated by a comma
,
.<script src="https://cdn.checkout.ventrata.com/v3/production/ventrata-checkout.min.js" type="module" data-config='{"apiKey":"<YOUR_API_TOKEN>", "input1": "value", "input2": "value" } }'></script>
Ventrata checkout support the following configuration inputs:
Input | Default | Description |
| by default not set | optional, lower case, for example,
๐ NOTE If both
|
| by default not set | optional, upper case, for example,
๐ NOTE If both
|
| by default not set |
|
| your | your apiKey is located in your Ventrata dashboard
|
| false | Allows the usage of embedded mode.
The page requires the presence of an HTML element with the
|
|
| Allows the usage of a cart (having multiple bookings for the same order).
It will trigger the bottom bar, which informs users about the current order content.
|
| by default not set | ID of the product
If not set, product list will be shown. |
| by default not set | ID of the option
if set, the option is pre-selected |
| by default not set | ID of the booking (used only for
Its presence needs to be paired with
|
| by default not set | ID of the order (used only for
Its presence needs to be paired with
|
| by default not set | if set to true, marketing consent will be pre-selected for users on the Contact Details of the Checkout page |
| by default not set | string value, for example,
|
| by default not set | string value; trigger checkout with a specific page in the checkout process such as Tickets or Checkout; use only in combination with
|