I have lots of information for you here.. some you may need to take to S2 Member. You can copy them on this message if you want. We've been integrating with S2 Member now for some time but since they wrote the integration functions into their admin center we've never known too much about what they did to complete the integration. I've now logged into your system and see what they are doing.
Notice in your S2 settings they have this note for iDevAffiliate:
*Tip* iDevAffiliate® also provides an alternative method, using a 3rd-party call. The alternative 3rd-party call, could be used with s2Member -> API Notifications. A 3rd-party call, is essentially an HTTP connection that runs silently behind-the-scene, as opposed to being loaded in a browser. It's a bit more powerful, but also more advanced.
That's exactly right and to do recurring commissions I believe you're going to need to use the API call vs. the tracking pixel call which is what I think you're using now. The reason is because that tracking pixel is only going to load at the time of signup. The API call should get hit everytime the customer is billed (check with S2 on this to verify). In order for that API call to work an additional variable needs added to the call.
&ip_address=[customer_ip_here]
You'd replace [customer_ip_here] with whatever variable S2 provides that will output the customers actual IP address.
Once that's setup and done you will then be doing recurring commissions. Then we'll tackle the issue of a free-trial. What needs done there is to verify the sale amount. If it's 0.00 the API call should not be made. So it would be something like this (not real code):
if sale_amount > .01 {
// make the API call
}
That's saying if the sale amount is greater than 1 penny make the API call. If not, don't do anything. This way the free trials you won't get anything in the iDevAffiliate admin center until the customer is billed with a positive amount (5 days later in your case) and then every 30 days (or whatever) after that.
Again this is going to require S2 to take a look at what I've written and help you make the appropriate changes to your setup on the S2 side of things.
Sincerely,
iDevDirect Support