Jump to content
Dan Cole

Login with Paypal

Recommended Posts

Having trouble with the return url in the paypal app.  I'm getting this message...

 

Relying Party Validation error: redirect_uri provided in the request does not match with the registered redirect_uri. Please check the request.

 

Based on another thread that I read I tried...

 

http://www.website/cataloguedirectory/ext/modules/payment/paypal/login.php

 

Common sense told me to try
 

http://www.website/cataloguedirectory/login.php

 

but that doesn't work either. 

 

What are you using?

 

Dan

Share this post


Link to post
Share on other sites

I thought I read somewhere that in the app the return url needs to be to

 

checkout_success.php


REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Responsive osCommerce CE (community edition) here

It's very easy to over complicate what are simple things in life

Share this post


Link to post
Share on other sites

try:

https://www.website/catalog/login.php?action=paypal_login

 

for "login with paypal" I'm sure it needs to match the "returnurl" that's formed within the "login with paypal" module template file i.e. "catalog\includes\modules\content\login\templates\paypal_login.php"


My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Share this post


Link to post
Share on other sites

@@auzStar   Thanks Dom...that did it.   In my case it was a non-ssl link since it's a development site but it now works.  Just to verify and add to my learning, I echoed out the returnurl from the content module and it matched up perfectly.   Thanks again...

 

Dan

Share this post


Link to post
Share on other sites

Hi guys, I want to enable this option and are having same problem using live

Relying Party Validation error: client_id or redirect_uri provided in the request does not match any of the registered clients. Please check the request.

 

How do I echo out the returnurl from the content module?

I have a certificate on the domain and I have confirmed that TLS 1.2 is all working

 

Anything else I can do to get this working?

Share this post


Link to post
Share on other sites

Hi, i dont know this, i prove all url but dont work... waht ist the correct returnurl?
Regards


No external links here, thank you

Share this post


Link to post
Share on other sites

Hello Lionel @@Lioelx, hello Troy @@waverunner,

 

It's time since I didn't use it, but I have still the apps set up and the return Url I have used is:

http://www.yourstore.com/login.php?action=paypal_login

or

https://www.yourstore.com/login.php?action=paypal_login

 

Must be complete URL including "http://" or "https://"

 

hope this helps

rgds

Rainer

Share this post


Link to post
Share on other sites

Hi, @@raiwa, now have what you say, but dont work, all mi site run ssl https:// i prove the same url whit https and http but nothing.


No external links here, thank you

Share this post


Link to post
Share on other sites

Hola Lionel, @@Lioelx,

 

Please make sure to use the latest version of the PayPal Login template. Until a few weeks ago the wrong template file from 2.3.4 standard was included in 2.3.4 BS EDGE.

 

rgds

Rainer

Share this post


Link to post
Share on other sites

@@raiwa

 

I'm using the PayPal App and the zip file is app-paypal-4_039.zip. Within the template file it uses action=paypal_login for the return URL. I've used that same return URL at the PayPal Developers site for the REST API for both the Sandbox and Live. And I made sure to save each.

 

All of my credentials for the app are correct. I still can't get it to work. My site is fully SSL so I used the return URL of https://my-domain.com/login.php?action=paypal_login. Where in EDGE do you find the correct PayPal Login template file? I'd really like to know, this has been driving me batty.

 

Take care

Bill

Share this post


Link to post
Share on other sites

Hello @@raiwa, my case is the same as Bill, full ssl, return url https:// all same.

incluides/modules/content/login/cm_paypal_login.php have this line

      $this->_app->loadLanguageFile('modules/LOGIN/LOGIN.php');

If refert to includes/modules/LOGIN/LOGIN.php doets exist

but /includes/apps/paypal/LOGIN/LOGIN.php exist Has something to do?

Regards

Edited by Lioelx

No external links here, thank you

Share this post


Link to post
Share on other sites

You should use the version included in 2.3.4 BS EDGE and make sure to use the latest version:

includes/modules/content/login/templates/paypal_login.php

 

must be edge after 01/012017:

https://github.com/gburton/Responsive-osCommerce/commit/8bb457312e04c73229957a49054f0bb24fc7d0e9

Share this post


Link to post
Share on other sites

I think you should post this now in the official PayPal App support thread

Share this post


Link to post
Share on other sites

I too am having problems getting the 'Login with Paypal' to work, and am getting the same error... I am using a BS 2.3.4 with the PayPal App v4.039

 

Relying Party Validation error: client_ID or redirect_uri provided in the request does not match any of the registered clients. Please check the request.

 

I have made sure that I am using the right credentials for the Live API, and that all the information requested is set up the same in osC and on the PayPal developer site, so am assuming its the return url problem.

 

On the PayPal pop up window that has the error message the 'Back to the Site' link takes you to http://www.mysite.co.uk/login.php?action=paypal_login

 

I have tried setting the Return URL on the PayPal Developer site to the same thing, but doesn't make any difference, and have now set the Return URL on the developer site to http://www.mysite.co.uk/login.php?action=paypal_login_process to see if it would change the link in the pop up window, but it doesn't.

 

If I look in my catalog/includes/modules/content/cm_paypal_login.php the only references to the return are as follows:

 

$return_url = tep_href_link(FILENAME_LOGIN, '', 'SSL');
$return_url = tep_href_link(FILENAME_LOGIN, 'action=paypal_login_process', 'SSL');

 

I just don't know what the return URL should be that you put on the PayPal developer site, and even if you change it the 'Back to the Site' link on the error box always says the same, and cant even find whats generating that URL.

Share this post


Link to post
Share on other sites

@@Enzo_UK

 

The Return URL ​for the "Login with Paypal" app should be:

http(or https depending on your site)://www.YOURDOMAINNAME.com/YOURCATALOG/login.php?action=paypal_login

(YOURCATALOG/ not required if your store is in root folder)

 

If you visit this demo site here: https://www.auzcommerce.com.au/osc234bs_test_sec/login.php you'll see that the "Login with Paypal" works (currently in Sandbox mode but also works in live mode). I have this for Return URL "https://www.auzcommerce.com.au/osc234bs_test_sec/login.php?action=paypal_login" on the deveploer site (notice it's https because https is used on site). Just to test I changed https to http and then I get the error you describe above.

 

In your "catalog/includes/modules/content/login/templates/paypal_login.php" file make sure you have code that looks like this:

    "returnurl": "<?php echo str_replace('&', '&', tep_href_link('login.php', 'action=paypal_login', 'SSL', false)); ?>"

Make sure all your "Login with Paypal" live and test credentials are entered correctly in your "admin->PayPal->Credentials->Log In" settings.

 

cheers

Edited by auzStar

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Share this post


Link to post
Share on other sites

I've everythings set according to above discussed.

 

"Return URL" in Paypal Developer setting = https://MYWEBSITE/catalog....../login.php?action=paypal_login

All Live and Test Client ID & Secret are correctly set in MYWEBSITE's PayPal App v5.018.

 

I logged in successfully, but soon it was redirected to screen said "Error: 403 Forbidden" message.

The url found is "https://MYWEBSITE/catalog/login.php?action=paypal_login&code=C2............................https%3A%2F%2Furi.paypal.com%2Fservices%2Fpaypalattributes%20profile".

 

Does anyone know what happened?

Share this post


Link to post
Share on other sites

Regarding my last post, I've test Login with PayPal in my local test server, which is not a SSL server, it does work in TEST mode and no Error: 403 message shown.

 

The "Return URL" in PayPal profile was set as "http://localhost/MYWEBSITE/..../login.php?action=paypal_login".

 

But in live site with "Return URL" set as "https://MYWEBSITE/..../login.php?action=paypal_login"(which is recommended in PayPal Apps), the Error: 403 still exists.

 

Could Error: 403 problem be something related to SSL when redirected to website?

Share this post


Link to post
Share on other sites

Does it work on the live site when you use http in the return address?  If so, you'll just need to wait to use https until you have an SSL Certificate installed.

 

Dan

Share this post


Link to post
Share on other sites

While the most recent post in here is already over 2 years old, I wonder if anyone had the same issue that I am having.

I have installed the "Login with PayPal" and everything seems to be good now, however after logging in with PayPal I end up on the login.php page again, and it doesn't show logged in and can't checkout.  So I wonder if anyone has an idea as to how this should work or if I am missing anything.

Thank you in advance.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×