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 generated subscription buttons

Home Forums Community Forum Paypal generated subscription buttons

This topic contains 13 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 4 months ago.

Topic Author Topic
Posted: Thursday Aug 16th, 2012 at 5:00 pm #22284

I have followed the tutorial on using paypal generated buttons and the transaction works flawlessly. I am redirected to the registration page without error. I create an account without error. The problem is that the registered user (after completing paypal checkout) is only granted level 0 access.

When I use the paypal pro forms to complete the same task it works fine and the user is assigned the correct level.
I am unable to test it using buttons generated via S2 because the shortcodes don’t render on my pages.

I have made sure the ID on the paypal form to generate buttons is “1” to signify level 1 as well.

List Of Topic Replies

Viewing 13 replies - 1 through 13 (of 13 total)
Author Replies
Author Replies
Posted: Friday Aug 17th, 2012 at 8:19 am #22326

Hi Jacequelyn.

Is the payment done by someone that hasn’t registered yet, or someone that’s logged in and is upgrading his account?

The PayPal created button will work with new users, not registered ones upgrading because the button won’t reference the user, so the payment won’t go towards his account.

If it’s for a new user that will register after checkout, could you please show me a screenshot of the page where you created the button, with all the fields added for the s2Member integration, please? Thanks!

Posted: Friday Aug 17th, 2012 at 1:33 pm #22375

Yes it is a new user. I will get those screenshots for you within an hour.

Posted: Friday Aug 17th, 2012 at 1:34 pm #22377

The payflow works like this. Subscribe button –> paypal –> payment details –> return to site –> registration –> confirmation email —> log in (registers as level 0)

Posted: Friday Aug 17th, 2012 at 2:42 pm #22382

Heres the images of the button creation:
http://imgur.com/a/WapSh

Was I supposed to use custom fields in the WP page itself?
I just copied the code generated by paypal into the page with the fields filled in, on paypal, as per the tutorial

Posted: Friday Aug 17th, 2012 at 2:46 pm #22383

There seems to be a large disparity in the paypal generated code for the button:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="7YY2PEDTQPUQG">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

and the s2member generated button for the same settings:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 <input type="hidden" name="business" value="drjackie@disabilityknow-it-all.com" />
 <input type="hidden" name="cmd" value="_xclick-subscriptions" />
 <!-- Instant Payment Notification & Return Page Details -->
 <input type="hidden" name="notify_url" value="http://disabilityknow-it-all.com/?s2member_paypal_notify=1" />
 <input type="hidden" name="cancel_return" value="http://disabilityknow-it-all.com/" />
 <input type="hidden" name="return" value="http://disabilityknow-it-all.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="disabilityknow-it-all.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="Gold Member - Access to our specialty resources / description and pricing details here." />
 <input type="hidden" name="item_number" value="1" />
 <!-- 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="0.01" />-->
 <input type="hidden" name="src" value="1" />
 <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="0.01" />
 <input type="hidden" name="p3" value="1" />
 <input type="hidden" name="t3" value="M" />
 <!-- Displays The PayPal® Image Button -->
 <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 Aug 17th, 2012 at 2:57 pm #22385

UPDATE: just tested the same process using the paypal pro form for level 1 access using only paypal to accept payments and it still registered users as level 0

[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="Gold Member - Access to our specialty resources / Description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="disabilityknow-it-all.com" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]

Thats the shortcode that also doesn’t give users proper access to level 1. Even though it says level=”1″ it only gives them free subscriber access. Could it be that it takes some time for paypal to process the payment?

Posted: Saturday Aug 18th, 2012 at 8:38 am #22433

Thanks for the info.

Could you make sure you have logging enabled and try a new test transaction, please? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging[/hilite]

And could you send me your login info so I take a look at your configuration in the Dashboard and your s2Member logs via FTP? s2Member® » Private Contact Form

Thanks!

Posted: Monday Aug 20th, 2012 at 3:10 pm #22590

Reply sent.

Posted: Wednesday Aug 22nd, 2012 at 7:47 am #22716

Thanks, Jacequelyn. Sorry I didn’t get to it earlier.

I looked at your settings and logs. I tried doing a new test purchase to have new entries and see what level my account got set to, but couldn’t do the test because the site is in maintainance mode, which can only be accessed as the admin, but as the admin I can’t do the test purchase.

Could it be possible to have the maintaince mode removed for a moment? Since I may not be around at the same time you are, could you tell me how to change the mode myself to do the test? I can figure it out, but want your permission first and the instructions on how you want me to do it.

Thanks!

Posted: Wednesday Aug 22nd, 2012 at 2:54 pm #22767

You have my permission. Just goto plugins –> WP Maintenance Mode –> deactivate whenever you wish to test it.
Just please turn it back on before you log out :)

Posted: Thursday Aug 23rd, 2012 at 6:43 am #22826

Thanks! When I went to do it, I noticed that already registered users could login, so I just went and created a Level 0 account from admin, and logged in with it to do the test purchase.

Well, I wasn’t upgraded to Level 1. It wasn’t entered in the s2Member logs, either, so I got no more new data on the problem. And all this without an indication that it didn’t work, I even got the message at the top of the pro-form, after being returned from Express Checkout, that it was okay and I could log in again.

I did a server check and, other than a low memory limit setting, everything was fine in the report.

What I’d check for next is a plugin conflict. To test this, deactivate all the plugins except s2Member, and do a new test purchase, see if the upgrade works now, and the logs have the new entries for it. If it works, activate the other plugins one by one, testing after each if the problem comes back to find the which one is causing it.

If you don’t want to deactivate plugins, you could create a new WP installation in a new folder for the test, install s2Member, configure the PayPal integration and post the shortcode for the pro-form in a page to run the test.

Let me know how it goes. :)

Posted: Monday Aug 27th, 2012 at 7:05 pm #23213

Would this cause a google wallet to work correctly but not paypal?

Posted: Tuesday Aug 28th, 2012 at 8:00 am #23268

Maybe, or not, I’m not sure. Best way to know would be testing it with a cheap 1 cent purchase.

Did you do the plugins test?

Viewing 13 replies - 1 through 13 (of 13 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.