/pre-orders
Query param
Where to find it
How to generate the token
token{% assign timestamp = 'now' | date: '%s' %}
{% assign token_value = customer.email | append: ':' | append: timestamp %}
{% assign token = token_value | hmac_sha256: 'YOUR_SHARED_SECRET' %}
<script>
window.PurpleDotAPICredentials = {
timestamp: "{{ timestamp }}",
email: "{{ customer.email }}",
token: "{{ token }}"
}
</script>Last updated