Hello dear S2Member-Team,
I can not solve this problem alone, please help me.
I would like to encrypt my S2Member PayPal-code. Unfortunately I can not use the S2Member-shortcodes, because I dynamically create some variables in the page-template (depending on the specific post).
Is there a way to encrypt the button code via template-tag?
My button code looks like this:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="zahlungsbutton">
<input type="hidden" name="business" value="info@x.net" />
<input type="hidden" name="cmd" value="_xclick" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="notify_url" value="http://www.x.net/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://www.x.net/" />
<input type="hidden" name="return" value="http://www.x.net/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<!-- Configures Basic Checkout Fields -->
<input type="hidden" name="lc" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="www.x.net" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="item_name" value="Sofortzugang Artikel <?php the_ID(); ?>" />
<input type="hidden" name="item_number" value="sp:<?php the_ID(); ?>:2190" />
<input type="hidden" name="amount" value="<?php echo $preis;?>" />
<!-- Configures s2Member's Unique Invoice ID/Code -->
<input type="hidden" name="invoice" value="<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" />
<!-- Associates Purchase With A User/Member ( when/if applicable ) -->
<input type="hidden" name="on0" value="Titel" />
<input type="hidden" name="os0" value="<?php the_title(); ?>" />
<!-- Identifies The Customer's IP Address For Tracking -->
<input type="hidden" name="on1" value="Kunden IP-Adresse" />
<input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
<!-- Displays The PayPal® Image Button -->
<input type="image" src="https://www.paypal.com/de_DE/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>
Can I pass my generated code to a S2Member-function to encrypt it?
Best wishes, Holger