- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My site reliefteaching.com is a membership site using s2 member pro. The autoreturn page after successful paypal payment is https://www.reliefteaching.com/welcome-and-thank-you/ which is listed in the URL under website payment preferences with the Auto Return button clicked on.
The payment page uses the shortcode as below.
[s2Member-Pro-PayPal-Form level="2" ccaps="" desc="Executive Membership $18.95 per year - cancel anytime." ps="paypal" lc="" cc="AUD" dg="0" ns="1" custom="www.reliefteaching.com" ta="0" tp="0" tt="D" ra="18.95" rp="1" rt="Y" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="1" default_country_code="" captcha="0" success="https://www.reliefteaching.com/welcome-and-thank-you/?subscr_id=%%subscr_id%%"/]
However, after successful paypal payment using the s2 member pro payment form (where the user lists password and username), the successful user is presented with a log in link sitting on top of the now blank paypal payment form.
The link does take the user to a login form but I would prefer it redirect to a more appropriate page.
Any ideas would be greatly appreciated.
Cheers
Bob
Solved! Go to Solution.
- Labels:
-
PayPal HTML Buttons
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I ran a new test and I see that your plugin pass the following URL to PayPal, overriding the one in your profile:
SetExpressCheckoutRequest:
returnurl = "https://www.reliefteaching.com/membership/executive-annual/?s2p-option&s2member_paypal_xco=s2member_..."
When your plugin calls SetExpressCheckout it set a different return URL than the one you set in your profile. You need to check with them how to pass in the SetExpressCheckout API request a different return URL, if they allow that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, if the variable "success" I see in your shortcode's post is the same as the "return" in the PayPal button then PayPal once the payment is completed redirect the user to that specific URL and we return the controll of the flow to your website/integration, so PayPal can't manage the behavior of your pages. Eventually do you have screenshots of the pages you referred to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much for your reply, Andre The success" in the short code was an attempted fix which obviously did not work. I have removed the "success"line. My users complete the s2 developed from from the paypal pro code.
The paypal progresses but returns to this page.
With a very small log in statement at the top.
I have set the auto return URL to the page below
https://www.reliefteaching.com/welcome-and-thank-you/
Which a part from an image contains all the recommended text and shows a SSL secure lock. This page is set up in my website payment preferences.
I obviously have done something wrong but I am unable to find out where the error is.
Any help is greatly appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI, I ran a test on your website in the "shop" section, but I get into an error on the PayPal checkout: EWP_SETTINGS
If you block these type of payments, EWP, you will receive this error. Check in your account the toggle. First login into your PayPal account and then click this link: https://www.paypal.com/webscr?cmd=_profile-website-payments
Now check the toggle called "Encrypted Website Payments" and make sure that does not block the payments: > Block Non-encrypted Website Payment.
After that if you can guide me to the button that will fail the return after successful payment I will run a new test.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your help.
Block Non Encrypted Payments is OFF.
When payment form (which is generated by s2 short code) is located at https://www.reliefteaching.com/membership/executive-annual/
The payment uses the PayPal Check Out button.
The payment processes corrected and I do receive the money and the membership is confirmed as a user but the return page is sent to the payment form at the URL as below.
The page is below which has a small message above the payment form where the user can log in.
However, I need the return page to be https://www.reliefteaching.com/welcome-and-thank-you/
I have listed this is the paypal Website Preferences. The Auto Return is ON and the URL is as above.
Just to complicate matters further, and I just thought about this, my site collects paypal payments for subscription (using S2 Member) and paypal payments from my shop using Woocommerce. I hope this does not complicate matters unnecessarily. Will this impact on the autoreturn.
Your help is appreciated.
Bob

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I ran a new test and I see that your plugin pass the following URL to PayPal, overriding the one in your profile:
SetExpressCheckoutRequest:
returnurl = "https://www.reliefteaching.com/membership/executive-annual/?s2p-option&s2member_paypal_xco=s2member_..."
When your plugin calls SetExpressCheckout it set a different return URL than the one you set in your profile. You need to check with them how to pass in the SetExpressCheckout API request a different return URL, if they allow that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for all the time you have put into this issue for me Andre. I will work with s2 Member plug in to develop a solution.
Cheers
Bob Brandis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs
- subscription_id has disappeared in REST APIs
- Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode? in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Paypal buttons and redirects in PayPal Payments Standard
- I get always the error: "invalid client_id or redirect_uri" from signin authorize endpoint. in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)