Page 1 of 1

But now links/buttons for external websites

PostPosted: October 8th, 2011, 11:08 pm
by ebarcena
I'm trying to generate a buy now link or button for an external website in pure html (no php). The s2member pluggin's Resulting PayPal® Button Code is giving me php values that are not compatible with my external html site. Even when I change the file name extension to php the button wont work. When I do this the button disappears and I can see the following error message only when viewing the source code:

Fatal error: Call to undefined function s2member_value_for_pp_inv() in /misc/6/000/257/825/8/user/web/mysite.com/index.php on line 166

Are this values really necessary???:
Code: Select all
<!-- Configures s2Member's Unique Invoice ID/Code  -->
<input type="hidden" name="invoice" value="<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" />

<!-- Identifies/Updates An Existing User/Member ( when/if applicable )  -->
<input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />

<!-- Identifies The Customer's IP Address For Tracking -->
<input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
<input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />


or can I go with out them??

Thanks

Re: But now links/buttons for external websites

PostPosted: October 9th, 2011, 2:43 pm
by Cristián Lávaque
I think you can do without them, but am not sure. What I know is that your button won't be encrypted and someone can edit it.

You could, instead, create a button over at PayPal following Jason's instructions, and it'll work in an HTML page without PHP, and also integrate with s2Member to manage the user's access. viewtopic.php?f=36&t=309#p1333

I hope that helps. :)