Page 1 of 1

Need to add custom inputs to paypal button code

PostPosted: November 27th, 2011, 8:15 pm
by hypermediadotca
I am integrating Affiliate Royale with S2 Member - to do this I need to add the following lines of code to the PayPal® Button Code:

<!-- Affiliate Stuff -->
<input type="hidden" name="notify_url" value="[wafp_ipn]">
<input type="hidden" name="custom" value="[wafp_custom_args]">

I can add it in manually but there is no way to save that section. Help?

thanks!

Re: Need to add custom inputs to paypal button code

PostPosted: November 28th, 2011, 2:14 pm
by hypermediadotca
I think I figured this one out

I edited the /includes/templates/buttons/paypal-checkout-button.php file

hope that does the trick!

if this is not the solution you had in mind, please let me know. thanks

Re: Need to add custom inputs to paypal button code

PostPosted: December 1st, 2011, 1:06 am
by Cristián Lávaque
The problem with that is that then s2Member won't be notified by PayPal, and the custom value needs to be your domain name for it to work with s2Member.

You should try using the Notifications API or the Tracking API to integrate with the affiliate plugin. These videos may help:

http://www.s2member.com/api-tracking-no ... ons-video/
http://www.s2member.com/idevaffiliate-i ... ion-video/

I hope they do. :)