You can open the checkout widget directly on a specific page of the booking flow instead of always starting from the beginning. This is useful if you want to:
send a customer straight to the Checkout page to review their order
open the Cart Summary when they click a shopping cart button
guide them to pages like Upgrade Your Experience or Pickups
Supported Values
The page
input lets you define which part of the checkout flow to open.
📒 NOTE
The page
input must always be used in combination with an orderID
.
Input | Default | Available Values | Description |
page | not set |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
How to Implement
Update the data-config
attribute in the <script>
tag (or button) to include the page you want the widget to open on when a customer lands on your website or clicks a 'Book now' button.
<script src="https://cdn.checkout.ventrata.com/v3/production/ventrata-checkout.min.js" type="module" data-config='{"apiKey":"<YOUR_API_TOKEN>", "orderdID": "<ORDER_ID>", "page": "checkout" } }'></script>