PayPal redirect URL after success

bbran19
Contributor
Contributor

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

 

 

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Andre
Moderator
Moderator

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.

View solution in original post

Login to Me Too
7 REPLIES 7

MTS_Andre
Moderator
Moderator

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?

Login to Me Too

bbran19
Contributor
Contributor

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.

 paypal_new.PNG

 

The paypal progresses but returns to this page.

 

paypal return page.PNG

 

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.

webpage prefer.JPG

 

 

I obviously have done something wrong but I am unable to find out where the error is.

 

Any help is greatly appreciated.

Login to Me Too

MTS_Andre
Moderator
Moderator

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.

Login to Me Too

bbran19
Contributor
Contributor

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.

 

https://www.reliefteaching.com/membership/executive-annual/?s2p-option&s2member_paypal_xco=s2member_... 

 

The page is below which has a small message above the payment form where the user can log in.

 

paypal return page.PNG

 

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

 

 

 

 

 

Login to Me Too
Solved

MTS_Andre
Moderator
Moderator

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.

Login to Me Too

bbran19
Contributor
Contributor

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

Login to Me Too

ranjeet1010
Contributor
Contributor
I need my money back
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.