Skip to main content

How to Trigger Checkout with a Specific Page

Updated over a month ago

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

"upgrade"

  • product offers to replace the current selection

"cross-sell"

  • product offers in addition to the current selection

"pickups"

  • select a pickup point

"questions"

  • booking and per-ticket questions

"order-questions"

  • questions relevant to the entire order

"cart-summary"

  • in embedded mode, a separate page with a list of bookings

"checkout"

  • in pop-mode, shows customer details and cart summary on the same page


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>
Did this answer your question?