Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login with Paypal


Dan Cole

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

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

  • 9 months later...

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?

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

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

Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

  • 1 month later...

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?

Link to comment
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?

Link to comment
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

Link to comment
Share on other sites

  • 2 years later...

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.

Link to comment
Share on other sites

  • 1 month later...
On 5/22/2019 at 7:35 PM, MrPhil said:

Login with PayPal has been changed to Connect with PayPal. See if anything in

 helps you.

Thanks MrPhil, I am back and I just looked at it. Actually, peterbuzzin mentioned to un-check the "Telephone Number" and "Seamless Checkout" from within "Admin > PayPal App" which I don't see in my admin. Quite frankly I don't remember how I got my APP and I am guessing that my installation may not not be complete. Do you have the link to the PayPal App? I am thinking about reviewing it and if needed re-installing it. My searches take to https://apps.oscommerce.com/fZMiN&paypal-app which is an older v5.010.

Thanks in advance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...