Hips.js Checkout Settings

Configuration

The following parameters in Hips.js can be configured

NameTypeDescription
tokenStringHIPS unique ID for this order, also known as Order Token retrieved from HIPS API Create Order
styleObjectJSON object providing optional styling preferences
style ➔ mainColorStringA CSS color
style ➔ secondColorStringA CSS color
style ➔ fontStringOverriding the default font

Example

<script src="https://cdn.hips.com/js/v1/hips.js"></script>
  <script>
       Hips.checkout({
        token: 'UVWofp7AjHiRKNLjhUjMnhc3',
        style: {
          'mainColor': 'BA68D1',
          'secondColor': 'C29ACE',
          'font': 'Comic Sans MS'
        }
       });
  </script>