Bugs & Feature Requests
Gateways, Merchant Accounts, Bank Accounts, Oh My!
The Foxy forums are on the move!
We're in the process of
moving our forums over to a new system
, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to
reach out to us via email
Setting up Referral Candy on the receipt page
edited August 2013
I am following these directions to set up referral candy on the receipt page
I have it figured out except for the last step:
Calculate the value for the 'data-signature' attribute as follows:
I am not sure what values to enter here. Possibly the twig template?
It needs to be server side but I have an ssl certificate for my site.
I've been trying to figure out the best way to set this up but haven't really got anywhere. Can you point me in the right direction?
Adam is out for a day or two, but I'll make sure he looks at this as soon as he's back in. Sorry for the delay.
So basically it'd be a few steps.
Firstly, you'd need to have a script on your server that takes a few pieces of information - specifically the email, first name, invoice total and timestamp - and create that MD5 string by adding in your account secret, then echoing it on the page.
Then within your receipt template, you'd call that endpoint using an AJAX request, and in the callback function for when it completes, you'd dynamically add in the required information into your receipt template as noted on the referral candy page.
Does that help?