PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

idev affiliate integration help

s2Member Plugin. A Membership plugin for WordPress®.

idev affiliate integration help

Postby antondb » June 17th, 2011, 4:22 pm

The below message is a response from an idev support representative whom I asked about properly setting up s2member to handle recurring subscriptions along with a free trial up front for a few days.

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
User avatar
antondb
Registered User
Registered User
 
Posts: 4
Joined: May 22, 2011

Re: idev affiliate integration help

Postby Cristián Lávaque » June 17th, 2011, 11:23 pm

Hi Anton.

It's great that they're helping you so well with tthe integration. :)

Have you watched this video Jason posted about iDev integrations? http://www.s2member.com/idevaffiliate-i ... ion-video/

Also, the Notifications API has a call for payments, there's one for payments, which is what he was asking for. WP Admin -> s2Member -> API / Notifications -> Payment Notifications

And the user's IP can be sent as a custom value.
WP Admin -> s2Member -> PayPal Buttons/Pro-Forms -> Shortcode Attributes (Explained) -> custom
WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants -> S2MEMBER_CURRENT_USER_IP


I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: idev affiliate integration help

Postby antondb » June 18th, 2011, 9:22 am

Thanks for the help.

After watching the video I tried inserting this code into the paypal pro button form: custom="mysite.com|<?php echo $_SERVER["REMOTE_ADDR"]; ?>" but when I view the page it is showing the actual code (broken) even though I have php execution plugin.

I read in another part of the documentation about using: custom="mysite.com|<?php echo S2MEMBER_CURRENT_USER_IP; ?>" which seems to work as far as no broken code appearing.

is that correct?

Then on the section for api notifications payment notifications I have the following:
http://mysite.com/idevaffiliate/sale.php?idev_saleamt=%%amount%%&idev_ordernum=%%txn_id%%&ip_address=%%cv1%%
User avatar
antondb
Registered User
Registered User
 
Posts: 4
Joined: May 22, 2011

Re: idev affiliate integration help

Postby Cristián Lávaque » June 18th, 2011, 5:08 pm

Looks correct to me. :)

When you use PHP with the Exec PHP plugin, you can't use the visual editor because it'll break the code, just the HTML editor can be used.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: idev affiliate integration help

Postby antondb » June 19th, 2011, 5:57 pm

ok, thank you. I think I have it setup properly now.

One last question. If a member joins my site through an affiliate link and I pay this user a recurring comission each month, what happens if the user upgrades or downgrades? Will the % I pay the affiliate be adjusted as well? Do I need to add the custom code (custom="mysite.com|<?php echo $_SERVER["REMOTE_ADDR"]; ?>") to the upgrade paypal pro form pages too?
User avatar
antondb
Registered User
Registered User
 
Posts: 4
Joined: May 22, 2011

Re: idev affiliate integration help

Postby Jason Caldwell » June 20th, 2011, 5:31 am

When setting up recurring commissions with iDevAffiliate, I recommend method #2 that I discuss here:
viewtopic.php?f=4&t=6275&p=14129#p14111

The answer to your question though, is no. iDevAffiliate does not offer a way to adjust the recurring amount being paid out to an affiliate. iDevAffiliate only understands commissions being created and commissions being stopped or terminated; there is no adjustment method in the iDev API. Sorry.

You might also be interested in this post, where I discuss refunds/cancellations:
viewtopic.php?f=4&t=6275&p=14129#p14106
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron