cancel
Showing results for 
Search instead for 
Did you mean: 

PayPal redirect URL after success

SOLVED
Contributor

PayPal redirect URL after success

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: PayPal redirect URL after success

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.

6 REPLIES 6
Moderator

Re: PayPal redirect URL after success

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?

Contributor

Re: PayPal redirect URL after success

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.

Moderator

Re: PayPal redirect URL after success

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.

Contributor

Re: PayPal redirect URL after success

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

 

 

 

 

 

Moderator

Re: PayPal redirect URL after success

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.

Contributor

Re: PayPal redirect URL after success

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