CheddarGetter is a billing and recurring subscription management system that enables startups to accept and track one-time charges and payments.
CheddarGetter provides a full-featured, easy-to-use billing and recurring subscription management system so you can accept and track one-time charges and recurring payments.
The integration method uses a special plugin built in Post Affiliate Pro. You can track commissions, recurring commissions, create affiliates automatically and also decline them. It also supports Lifetime Commissions.
NOTE: This integration method can be used only if you use ChedarGetter payment form(s) in your own site. In case you are using the hosted payment pages of CheddarGetter (your domain is with them and you have no way to add custom script to the form) then this integration method is not applicable.
Step 1 – Modify customer data
When creating a new customer before payment is taken, we will add some custom data to it. CheddarGetter allows you to us metaData fields with custom values. For tracking, we need to pass tracking cookie value. The very first step is to load the cookie value in the payment form (using notifysale.php script) and then sending it within all data to processing script of your form, so the value can be added to the new customer. The code for your form is this:
Note the script points to HTTPS! Make sure there is a valid certificate at your server with Post Affiliate Pro.
Step 2 – Modify customer data
We already have the needed tracking value (we sent it in the previous step) and now we will process it. In the file with handles new CheddarGetter customers you have to find newCustomer() function. In this step, we will use metaData:
'metaData' => array( 'pap_custom' => $_POST["pap_custom"] )
This code has to be added to data variable (array) for new customer. When created, the customer will have the needed tracking value in their metaData.
No worries if you already use some metaData. As you can see the above script uses a special name for them (pap_custom).
The first step is to enable CheddarGetter plugin in your Post Affiliate Pro. When enabled, configure it – there is a field for cookie name, which we specified in step 1. Fill in the name of it (pap_custom by default).
Add new service hook
Now the integration is almost ready. The last step is to send the data to your Post Affiliate Pro. We will do this using Service Hooks of CheddarGetter.
Navigate to Configuration> Service Hooks> Custom URL in your CheddarGetter admin and add a new URL (the link Add URL). Use this URL:
Enable notification events you want to track and save. This is it. Now your system is integrated.
Do not forget to integrate your website with the click tracking code.