Implement Server-side JSON Webhook for Refersion
To install Refersion Tracking, follow these steps:
- Download & unzip the file and place the
refersiontrackingdirectory into yourcraft/pluginsdirectory - -OR- do a
git clone https://github.com/cavellblood/refersiontracking.gitdirectly into yourcraft/pluginsfolder. You can then update it withgit pull - -OR- install with Composer via
composer require cavellblood/refersiontracking - Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
refersiontrackingfor Craft to see it. GitHub recently started appending-master(the branch name) to the name of the folder for zip file downloads.
Refersion Tracking works on Craft 2.4.x and Craft 2.5.x.
Refersion Tracking sends a JSON webhook to the Refersion API with information about the customer’s order.
- Public Key - Enter your Refersion Public Key. It can be found under your Refersion Account → Settings → Refersion API. If you don’t have an API key you may need to generate a new one.
- Secret Key - Enter your Refersion Secret Key. It can be found under your Refersion Account → Settings → Refersion API. If you don’t have an API key you may need to generate a new one.
-Insert text here-
Some things to do, and ideas for potential features:
- Allow public and secret keys to be configured via
refersionTracking.phpfile which could be set to environmental variables.
Brought to you by Cavell L. Blood