Hips.js Checkout Settings
Configuration
The following parameters in Hips.js can be configured
Name | Type | Description |
---|---|---|
token | String | HIPS unique ID for this order, also known as Order Token retrieved from HIPS API Create Order |
style | Object | JSON object providing optional styling preferences |
style ➔ mainColor | String | A CSS color |
style ➔ secondColor | String | A CSS color |
style ➔ font | String | Overriding 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>
Updated about 5 years ago