Installing Upzelo
3 Steps to get started quickly.
1. Insert the Upzelo JS Snippet
The following code will add the Upzelo client-side script and make itself available in the global JS namespace as window.upzelo
. Place the following snippet into your <head>
element.
You can find your App ID here
2. Server-side authentication
This is only required if you wish for Upzelo to take action on your behalf with your payment provider.
Server-side authentication is in place to make sure that any requests Upzelo makes to your payment provider on your behalf are authorised and legitimate. This is achieved by you generating an HMAC hash (SHA256 algorithm) with the customerId
and your retentionAPI
key.
You can find your retentionAPI key here
When Upzelo makes a request, it will compare the HMAC hash sent with one that is generated on our servers to ensure that the request is legitimate. Below are some examples of how this hash can be generated in different backend languages.
3. Link your cancel button
Once you have generated an HMAC hash and passed it along to your front end, you can initialise Upzelo and define how you'd like it to be displayed. If you are opting to not have Upzelo take action on your behalf, you may omit the hash
and type
parameters.
One typical way of implementing Upzelo would be to attach an event listener to a button.
Last updated