latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

PayPal button gives wrong subscription

Home Forums Community Forum PayPal button gives wrong subscription

This topic contains 3 replies, has 2 voices. Last updated by  Matt Miller 4 years, 6 months ago.

Topic Author Topic
Posted: Wednesday Jul 4th, 2012 at 9:05 am #18292
Matt Miller
Username: jmm7574

Hello …

I just recently created a PayPal button and copied and pasted the PayPal button code snippet into my page. Everything works great except that it creates a “subscriber” account for the new user instead of an S2Member level 1 account. Is there something in that code snippet that I can change so it will create S2Member level 1 accounts instead?

Thanks … Matt

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Jul 5th, 2012 at 10:45 am #18393
Eduan
Username: Eduan
Moderator

Hello Matt,

Could you please post the snippet you used inside the code tags?

Thanks. ;)

Posted: Thursday Jul 5th, 2012 at 4:26 pm #18411
Matt Miller
Username: jmm7574

Here it is. I’ve added the tags that keep the payment button from going to the bottom of the page.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 <div style="display: none;">
 <input type="hidden" name="business" value="jmattmiller16@gmail.com" />
 <input type="hidden" name="cmd" value="_xclick" />
 <!-- Instant Payment Notification & Return Page Details -->
 <input type="hidden" name="notify_url" value="http://teamup-tn.com/?s2member_paypal_notify=1" />
 <input type="hidden" name="cancel_return" value="http://teamup-tn.com/" />
 <input type="hidden" name="return" value="http://teamup-tn.com/?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="teamup-tn.com" />
 <input type="hidden" name="currency_code" value="USD" />
 <input type="hidden" name="page_style" value="paypal" />
 <input type="hidden" name="charset" value="utf-8" />
 <input type="hidden" name="item_name" value="TEAM Up Tennessee one-year membership" />
 <input type="hidden" name="item_number" value="1::1 Y" />
 <!-- 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; ?>" />
 <!-- Controls Modify Behavior At PayPal® Checkout -->
 <input type="hidden" name="modify" value="0" />
 <!-- Customizes Prices, Payments & Billing Cycle -->
 <input type="hidden" name="amount" value="15" />
 <!--<input type="hidden" name="src" value="BN" />-->
 <!--<input type="hidden" name="srt" value="" />-->
 <!--<input type="hidden" name="sra" value="1" />-->
 <!--<input type="hidden" name="a1" value="0" />-->
 <!--<input type="hidden" name="p1" value="0" />-->
 <!--<input type="hidden" name="t1" value="D" />-->
 <!--<input type="hidden" name="a3" value="15" />-->
 <!--<input type="hidden" name="p3" value="1" />-->
 <!--<input type="hidden" name="t3" value="Y" />-->
 <!-- Displays The PayPal® Image Button -->
 </div>
 <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>
Posted: Friday Jul 6th, 2012 at 12:45 pm #18492
Matt Miller
Username: jmm7574

Anyone know how to change that snippet of code so it will give my users an S1 membership instead of a regular Subscriber membership?

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.