Wishlist Member, iDevAffiliate, Paypal…

Wishlist Member, iDevAffiliate, Paypal…

edit: This article was edited on June 7, 2010 to include the iDevAffiliate Subscribe notify link in the examples.

In February, I released Enhanced Paypal ShortCodes for WordPress that enables website owners to easily add Paypal buttons on their pages.  Personally, I think it’s a great little plugin that saves me a heap of time because I don’t have to mess around cutting and pasting the paypal form code into the HTML panel of the WordPress editor.

The motivation behind creating this pluginwas actually to make it easier to integrate iDevAffiliate with Wishlist Member. When using iDevAffiliate with Paypal, it is not possible to use Saved Paypal buttons – you must use full paypal form code and add some extra fields to the code…. the extra fields are so that paypal can ‘tell’ iDevAffiliate that a successful sale has been made.

When Wishlist Member is added to the mix, extra field codes are required as well so that Wishlist Member is ‘told’ of the successful sale.

I’ve created a diagram showing how I see the affiliate referral, payment and notification process:


Using the full form code is all good and well, but I found that it was problematic and often caused my clients more trouble than not.  Hence, the enhanced paypal shortcodes plugin.

Here is how I use the enhanced paypal shortcode plugin to integrate Wishlist Member and iDevAffiliate and use Paypal as the payment processor:

1. Create a php file called paypal.php that contains:

 Header("content-type: application/x-javascript");
$serverIP=$_SERVER['REMOTE_ADDR'];
echo "document.write(\"<input name=custom type=hidden value=$serverIP />\")";
?>

2. Upload this file to wp-content/uploads (or any folder you like, just remember where you put it!)

3. Install and activate the Enhanced Paypal Shortcodes plugin
You can download a copy from here or use the Install New Plugin function on your blog

4. Add the shortcode where ever you want your paypal button to appear.
Suggested usage for a buy now button is:

[paypal type="paynow" amount="12.99" email="payments@yoursiteurl.com" itemno="12345657" name="Description" noshipping="1" nonote="0" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" src="0" notifyurl="http://yoursiteurl.com/index.php/register/GotS4f" notifyurl2="http://www.yoursiteurl.com/idevaffiliate/paypal_ipn_buynow.php" returnurl="http://yoursiteurl.com/index.php/register/GotS4f" scriptcode="/integration/paypal1.php" width="400px" textalign="center" marginleft="10px"]

I’ve deliberately put spaces before the “[" and "]” so the code will print in the post – make sure you remove those spaces!
Set itemno to the Item/Subscription ID in the Integration section of Wishlist Member

Set notifyurl to the Thankyou URL shown in the Integration section of Wishlist Member

Set notifyurl2 to the Notify URL specified in the Paypal module of your iDevAffiliate installation.

Set returnurl to the Thankyou URL shown in the Integration section of Wishlist Member

Set scriptcode to the folder where you uploaded the paypal.php file too (e.g /wp-content/uploads) – it is important that you get this addressing correct, or the integration won’t work.

Due to popular demand, I’ve included the suggested Usage for a subscription button:

[ paypal type="subsribe" email="payments@yoursiteurl.com" itemno="12345657" name="Description" noshipping="1" currencycode="USD"   imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1"   p1="7" t1="D" a2="3" p2="1" t3="M" a3="47" p3="1" t3="M" rm="2" notifyurl="http://yoursiteurl.com/index.php/register/GotS4f"  notifyurl2="http://www.yoursiteurl.com/idevaffiliate/paypal_ipn_recurring.php"  returnurl="http://yoursiteurl.com/index.php/register/GotS4f"  scriptcode="/integration/paypal1.php" width="400px" textalign="center"  marginleft="10px" ]

For more information on how to set the other parameters for this plugin, refer to the plugin FAQ

That’s it – you should now have integration between iDevAffiliate, Wishlist Member and Paypal!

Have you used this plugin?  Share your thoughts!  Also, please rate the plugin in the Repository.

  • http://www.dainis.info Dainis W. Michel

    After “[" and before "]” … har har…minor detail brought to you by my years of tech-writing :-) thanks for your work!

  • http://www.dainis.info Dainis W. Michel

    After “[" and before "]” … har har…minor detail brought to you by my years of tech-writing :-) thanks for your work!

  • http://www.productlaunchconsultancy.com David Walsh – Product Launch C

    Excellent integration, very much appreciated.

    Once again you excel yourself.

    Many thanks,

    David :)

    .-= David Walsh – Product Launch Consultant´s last blog ..Product Launch System =-.

  • http://www.productlaunchconsultancy.com David Walsh – Product Launch Consultant

    Excellent integration, very much appreciated.

    Once again you excel yourself.

    Many thanks,

    David :)

    .-= David Walsh – Product Launch Consultant´s last blog ..Product Launch System =-.

  • http://www.dainis.info Dainis W. Michel

    Hey, I’m just about to test an absolute link “http://www.domainname.com/paypal.php” for scriptcode instead of a relative one the way you have in the button above. I’m doing that because I’m not sure what subdirectory my posts/pages wind up in…

    could that cause a glitch or would an absolute link be OK?

    Best,
    Dainis
    .-= Dainis W. Michel´s last undefined ..If you register your site for free at =-.

  • http://www.dainis.info Dainis W. Michel

    Hey, I’m just about to test an absolute link “http://www.domainname.com/paypal.php” for scriptcode instead of a relative one the way you have in the button above. I’m doing that because I’m not sure what subdirectory my posts/pages wind up in…

    could that cause a glitch or would an absolute link be OK?

    Best,
    Dainis
    .-= Dainis W. Michel´s last undefined ..If you register your site for free at =-.

  • http://www.dainis.info Dainis W. Michel

    ahh, I just realized I may have an issue. My subscription starts at 1 cent for the first month and then moves to either $37 or $97 per month.

    I’ll see how far I get and thanks…

    :-)
    .-= Dainis W. Michel´s last undefined ..Response cached until Wed 14 @ 19:11 GMT (Refreshes in 23.95 Hours) =-.

  • http://www.dainis.info Dainis W. Michel

    ahh, I just realized I may have an issue. My subscription starts at 1 cent for the first month and then moves to either $37 or $97 per month.

    I’ll see how far I get and thanks…

    :-)
    .-= Dainis W. Michel´s last undefined ..Response cached until Wed 14 @ 19:11 GMT (Refreshes in 23.95 Hours) =-.

  • http://www.dainis.info Dainis W. Michel

    Kicked a bit of butt and figured out the following:

    To get non-hosted PayPal button code, you can create a similar button to your hosted button (if that’s how you’re starting), and then in step 2 “Track Inventory” uncheck Save Button at Paypal, then when creating the button, it allows you to “Remove Code Protection” and voila, you’re set.

    Source: http://support.qualityunit.com/knowledgebase/post-affiliate-pro/troubleshooting/paypal-hosted-buttons-integration.html

    …gets me a bit closer…
    .-= Dainis W. Michel´s last undefined ..Response cached until Wed 14 @ 19:11 GMT (Refreshes in 23.65 Hours) =-.

  • http://www.dainis.info Dainis W. Michel

    Kicked a bit of butt and figured out the following:

    To get non-hosted PayPal button code, you can create a similar button to your hosted button (if that’s how you’re starting), and then in step 2 “Track Inventory” uncheck Save Button at Paypal, then when creating the button, it allows you to “Remove Code Protection” and voila, you’re set.

    Source: http://support.qualityunit.com/knowledgebase/post-affiliate-pro/troubleshooting/paypal-hosted-buttons-integration.html

    …gets me a bit closer…
    .-= Dainis W. Michel´s last undefined ..Response cached until Wed 14 @ 19:11 GMT (Refreshes in 23.65 Hours) =-.

  • http://wishlistmaster.com Bob Patterson

    Charly,
    What a timely solution. I had two people this week ask about this problem. You saved the day for one of them.

    Nice work and thanks for sharing.

    Bob
    .-= Bob Patterson´s last blog ..WishList Member update to include Infusionsoft and 1ShoppingCart Integration =-.

  • http://wishlistmaster.com Bob Patterson

    Charly,
    What a timely solution. I had two people this week ask about this problem. You saved the day for one of them.

    Nice work and thanks for sharing.

    Bob
    .-= Bob Patterson´s last blog ..WishList Member update to include Infusionsoft and 1ShoppingCart Integration =-.

  • http://www.TheFundingguru.com Andrew

    Charly

    I’ve seen your comments etc in a number of place – you really know your stuff! Thanks for your contributions…

    So I have a quick question or two – So I am a huge wordpress fan! And already have Wishlist member (and its awesome too…) – I want to create a set of tools for affiliates that prepopulates them with the specific affiliate code – I’m a firm believer in much of the lessons in Butterfly Marketing.

    So would you recommend I use iDevAlliliate with wordpress or somehow see if I can get the Butterfly marketing script to work with wordpress? I think the later option will be a real kludge so I’m leaning towards iDevaffiliate – but does it auto populate affiliate codes into all the tools and is it easy for affiliates to use?

    Thanks in advance…

    Andrew
    .-= Andrew´s last blog ..How to get cheap money for your startup =-.

  • http://www.TheFundingguru.com Andrew

    Charly

    I’ve seen your comments etc in a number of place – you really know your stuff! Thanks for your contributions…

    So I have a quick question or two – So I am a huge wordpress fan! And already have Wishlist member (and its awesome too…) – I want to create a set of tools for affiliates that prepopulates them with the specific affiliate code – I’m a firm believer in much of the lessons in Butterfly Marketing.

    So would you recommend I use iDevAlliliate with wordpress or somehow see if I can get the Butterfly marketing script to work with wordpress? I think the later option will be a real kludge so I’m leaning towards iDevaffiliate – but does it auto populate affiliate codes into all the tools and is it easy for affiliates to use?

    Thanks in advance…

    Andrew
    .-= Andrew´s last blog ..How to get cheap money for your startup =-.

  • http://thewordpresswarrior.com/596/enhanced-paypal-shortcodes Enhanced Paypal Shortcodes | The Wordpress Warrior

    [...] I have also provided information on how you want to use this plugin to integrate with iDevAffiiliate and Wishlist Member, here. [...]

  • http://askcharlyleetham.com Charly Leetham

    Hi Bob,

    Many thanks for that – I’ve updated the plugin again to include the ability to use a cancel url in the button…

    The latest version is available from the WordPress repository.

    Charly.

  • http://askcharlyleetham.com Charly Leetham

    Hi Bob,

    Many thanks for that – I’ve updated the plugin again to include the ability to use a cancel url in the button…

    The latest version is available from the WordPress repository.

    Charly.

  • http://askcharlyleetham.com Charly Leetham

    Hi Dainis,

    The subscription button allows you to implement two trial periods and ongoing billing (or billing for a certain number of payments).

    I’ve tested this functionality on another membership site and it works well.

    Charly.

  • http://askcharlyleetham.com Charly Leetham

    Hi Dainis,

    The subscription button allows you to implement two trial periods and ongoing billing (or billing for a certain number of payments).

    I’ve tested this functionality on another membership site and it works well.

    Charly.

  • http://askcharlyleetham.com Charly Leetham

    Hi Andrew,

    I haven’t done a lot of work around the affiliate resources offered with iDevAffiliate, but I have looked at them fairly closely and I feel they are very impressive actually. Of course, they have to be configured once by the Affiliate Manager, but once they’re done – all an affiliate has to do is login and choose which resource they want to use.

    The resources that an Affiliate manager can offer include:
    Banners, Page Peels, Lightboxes, Text Ads, HTML Ads, Email Links, Email Templates, Tier Linking Code & PDF Marketing Brochures

    iDevAffiliates also offer templates for the Lightboxes and Pagepeels, complete with PSD templates.

    I don’t know much about the Butterfly Marketing script, except for what I have heard from others and that feedback leads me to say that I wouldn’t try to integrate it.

    Hope that information helps – there is an Affiliate Demo site on the iDevAffiliate site that shows the resources available.

    Cheers,
    Charly.

  • http://askcharlyleetham.com Charly Leetham

    Hi Andrew,

    I haven’t done a lot of work around the affiliate resources offered with iDevAffiliate, but I have looked at them fairly closely and I feel they are very impressive actually. Of course, they have to be configured once by the Affiliate Manager, but once they’re done – all an affiliate has to do is login and choose which resource they want to use.

    The resources that an Affiliate manager can offer include:
    Banners, Page Peels, Lightboxes, Text Ads, HTML Ads, Email Links, Email Templates, Tier Linking Code & PDF Marketing Brochures

    iDevAffiliates also offer templates for the Lightboxes and Pagepeels, complete with PSD templates.

    I don’t know much about the Butterfly Marketing script, except for what I have heard from others and that feedback leads me to say that I wouldn’t try to integrate it.

    Hope that information helps – there is an Affiliate Demo site on the iDevAffiliate site that shows the resources available.

    Cheers,
    Charly.

  • http://thomashaugen.net/ Thomas Haugen

    Thank you Charly! This was exactly what I was looking for. :)
    .-= Thomas Haugen´s last blog ..Top 15 WordPress Plugins =-.

  • http://thomashaugen.net/ Thomas Haugen

    Thank you Charly! This was exactly what I was looking for. :)
    .-= Thomas Haugen´s last blog ..Top 15 WordPress Plugins =-.

  • http://www.honestaberefund.com Mike Croes

    Hi Charly,

    I’m having a very difficult time getting my Idevaffiliate offline marketing box to work on my website. Not sure what the problem is…my test payments go through to my PayPal Account but the input Affiliate ID doesn’t trigger a commission!

    The Idev website has a video on how to use offline marketing from a sales perspective but not on how to integrate it with PayPal, Idev’s Tracking Software, and a website…Any chance You can help me?

    I have an Idea for you, a paid membership site with Idev how to videos…I’d join!

    -Mike

  • http://www.honestaberefund.com Mike Croes

    Hi Charly,

    I’m having a very difficult time getting my Idevaffiliate offline marketing box to work on my website. Not sure what the problem is…my test payments go through to my PayPal Account but the input Affiliate ID doesn’t trigger a commission!

    The Idev website has a video on how to use offline marketing from a sales perspective but not on how to integrate it with PayPal, Idev’s Tracking Software, and a website…Any chance You can help me?

    I have an Idea for you, a paid membership site with Idev how to videos…I’d join!

    -Mike

  • http://askcharlyleetham.com Charly Leetham

    Hey Mike!

    I’ve seen this problem a few times. Please check your IPN settings in paypal – that seems to fix the issue.

    On one clients site, I found that the IPN messages had to be set to on.

    To check this – go to your History -> IPN history in paypal and see what the statuses are.

    Please contact me directly if you have any issues – I really want to make this work – use the contact form on this site on contact me on Skype at charlyjl (please intro yourself when you do!)

    Charly.

  • http://askcharlyleetham.com Charly Leetham

    Hey Mike!

    I’ve seen this problem a few times. Please check your IPN settings in paypal – that seems to fix the issue.

    On one clients site, I found that the IPN messages had to be set to on.

    To check this – go to your History -> IPN history in paypal and see what the statuses are.

    Please contact me directly if you have any issues – I really want to make this work – use the contact form on this site on contact me on Skype at charlyjl (please intro yourself when you do!)

    Charly.

  • http://barbaratate.com barbara tate

    I am currently moving a website to WordPress for a ‘client’ and having terrible trouble with some hosted PayPal buttons – whatever I try I get some kind of form field/check box appearing next to the button. It is theme independent so I assume there is something simple I am missing – can anyone please tell me what it is while I still have hair? The table of _PayPal buttons is at the bottom of this impossibly long page here: http://213.229.86.150/~harmonic/?page_id=40
    I have used several different plugins (including this one) to embed the code, all to no avail
    Many thanks in advance

  • http://barbaratate.com barbara tate

    I am currently moving a website to WordPress for a ‘client’ and having terrible trouble with some hosted PayPal buttons – whatever I try I get some kind of form field/check box appearing next to the button. It is theme independent so I assume there is something simple I am missing – can anyone please tell me what it is while I still have hair? The table of _PayPal buttons is at the bottom of this impossibly long page here: http://213.229.86.150/~harmonic/?page_id=40
    I have used several different plugins (including this one) to embed the code, all to no avail
    Many thanks in advance

  • Lucy

    I thought this was the answer to my issue, but still having problems with the redirection back to website after payment. The user completes the payment, but must manually click ‘return to merchant’ in order to get back to my website and complete registration. Have tried a few things and nothing seems to get the auto return to work. Have read elsewhere that it will never work if user pays with credit card -will only work if they use their PayPal account. Do you know if this is true?

  • Dshemail

    Hello Lucy,

    I am trying to find a easy to integrate online appointment and scheduling management solution (software or plugin) that will work with iDevAffiliate. I would appreciate any thoughts or suggestions.

  • Dshemail

    Sorry Lucy.. my mistake… This message is for Charly.

  • Wbachanek

    great plugin
    im from poland
    add a plugin
    hide/unhide  text in blog wordpress
    would be wonderful

  • Anaa

    Hi There,

    Don’t know if it is a right place to ask this question or not but anyways m gonna ask..
    Actually I want to integrate idevaffiliate in my wordpress blog where I’m having subscription process using ( cp.responder.co ) and want to use secure cardcom.
    Can anyone help me with this?
    Many thanks

  • http://www.facebook.com/nickdageek Nick Smith

    Awesome post Morgan – that’s exactly what I’ve been looking for.

    Thanks for posting.

    Oh and BTW, I got a “Page is not available or doesn’t exist” type error when trying to view this page when logged in:

    http://thewpwarrior.com/996/adding-code-to-the-wishlist-member-registration-page/login

    Cheers

    Nick :)

Powered by WishList Member - Membership Site Software