Introduction

Once your customers have browsed the Catalog and added items to the shopping Cart, they will have to check out and pay for the order. There are to 2 options to do this:

  1. Hosted Checkout: redirect the user to the hosted WebLink portal. This is the recommended option, as it greatly reduces the effort to gather user details and process payments.
  2. Custom Checkout: built using our WebLink API

Moreover, the first, recommended option is also easily available by using our Cart widget, which includes a button to start the checkout on our hosted pages (this is part of our standard WebLink widgets offering.

Hosted Checkout

In the example below, <portalBaseUrl> refers to your WebLink portal address such as mycompany-site.administrateweblink.com.

If you started your session with Guest authorization, you can just redirect to our hosted checkout URL:

https://<portalBaseUrl>/checkout?cartID=<Cart ID>&portalToken=<Portal Token>&locale=<Locale>

You will require the following parameters in the query string above:

Request parameters

Cart ID (required) The ID of the cart in the user session, created by the Create cart mutation.

Portal token (required) The Portal token obtained following the Guest user authorization method.

Locale The locale to use (e.g. en-US, en-GB etc.). Defaults to the user's browser's selected locale.

Custom Checkout

Read the rest of the documents in this Checkout section in order to use our WebLink API to

  1. Update the Cart with buyer details
  2. Update the Cart with learner details
  3. Gather payment information
  4. Place the order