Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

LOGIN WITH PAYPAL errors and multiple modules??


ebarrett

Recommended Posts

Hi there, 

I have recently tried to add login with paypal to our site (i believe its now called connect with paypal, although the code seems to still be discussed as its original name)

I had to make a couple of updates with our oscom version - which is heavily customised - before I could even start. One of the main updates I made was to move the login page to the 'content' folder and appropriate admin page. 

I have then added the login to the paypal app. 

Now when trying to set it up we can the following error (regardless of sandbox or live) :

"We're sorry This action isn't supported. Please return and report this error so that we can support it in the future. (invalid scope)"

osc v2.3.4

paypal app  v5.018

Questions:

1. I now have two configure windows in which i can add our Client ID, Secret PW and the information for the button, one in the paypal app and one in the content modules, The paypal log in button doesn't appear on the login page unless i have the content module active, and i'm pretty sure it's this one that is defining things like the button colour etc. Have I some how managed to get 2 modules trying to do the same thing?? If so, how do i get the paypal app version actually showing on the login page?!

2. I can't find too much information regarding the error message we are getting. From what I have read 'scope' means the variables you are setting that the customer must supply? I have read things about not having telephone number or seamless checkout checked, but having nothing but the minimum checked seems to make any difference. 

2b. I have seen mention of having to request approval from paypal before you can get it working, but why would we need approval for the sandbox? The information isn't particularly clear on that, it depends what forum you look at. 

 

Hopefully that all made sense - thanks in advance :) 

 

Link to comment
Share on other sites

Ok, so i have it working a bit more now. between the app and the sandbox account I now have it showing the log in page.. but customers can't log in. It just returns a failed log in message everytime. 

Link to comment
Share on other sites

9 hours ago, ruden said:

@ebarrett 

Here are fixes for all known bugs https://github.com/ruden/vanilla-oscommerce/tree/dev/catalog/includes/apps/paypal

Copy the contents of the includes/apps/paypal folder to your project

Thank you for this. I did that this today, and it hasnt changed too much, as far as customer side. I managed to get the log in working but now Im having issues with payment - I select paypal at the payment page, and it takes me to a blank page at the following url:

/ext/modules/payment/paypal/express.php

 

Link to comment
Share on other sites

Quote

I select paypal at the payment page, and it takes me to a blank page at the following url:

/ext/modules/payment/paypal/express.php 

hi Erika,

If you have not already, turn on your error reporting. That will help you to see via the error log what errors are being generated and you can better identify where the problem is.

 

Edited by Demitry

osCommerce: made for programmers, ...because store owners do not want to be programmers.

https://trends.google.com/trends/explore?date=all&geo=US&q=oscommerce

Link to comment
Share on other sites

On 6/18/2021 at 5:58 PM, ebarrett said:

I select paypal at the payment page, and it takes me to a blank page at the following url:

replace the code in the file /ext/modules/payment/paypal/express.php 

https://raw.githubusercontent.com/ruden/vanilla-oscommerce/dev/catalog/ext/modules/payment/paypal/express.php

you can check on the demo site

https://demo.osclab.com/vanilla-oscommerce/

Edited by ruden
Link to comment
Share on other sites

On 6/19/2021 at 2:04 AM, Demitry said:

hi Erika,

If you have not already, turn on your error reporting. That will help you to see via the error log what errors are being generated and you can better identify where the problem is.

 

Hmm.. It doesnt seem to be triggering any errors. 

On 6/19/2021 at 4:34 PM, ruden said:

replace the code in the file /ext/modules/payment/paypal/express.php 

https://raw.githubusercontent.com/ruden/vanilla-oscommerce/dev/catalog/ext/modules/payment/paypal/express.php

you can check on the demo site

https://demo.osclab.com/vanilla-oscommerce/

Ok, that now loads up paypal, but it asks the customer to log in again (im assuming this is because streamless checkout causes issues at the moment?) but then when you log in, it loads the option to log in or use a bank card? so it still isnt 100% right. any ideas? 

 

 

Link to comment
Share on other sites

6 hours ago, ebarrett said:

Ok, that now loads up paypal, but it asks the customer to log in again (im assuming this is because streamless checkout causes issues at the moment?) but then when you log in, it loads the option to log in or use a bank card? so it still isnt 100% right. any ideas?  

Please test your actions on the demo site https://demo.osclab.com/vanilla-oscommerce/

Link to comment
Share on other sites

  • 3 weeks later...

Ok, its been a while since i got a reply for this.. i went through and used that demo site again, and now that site takes me to a blank page when i try and log in. 

I feel like im so close to this working, this is just frustrating! 

Link to comment
Share on other sites

On 7/10/2021 at 9:27 AM, ruden said:

alas, this seems to have made things worse rather than better. Now if i log in using paypal the window doesnt close and update the page, it just does the re direct on the pop up window.. also, it didnt make any difference to the payment page pop up. It still just refreshes and says i need to log in to pay (or use card details if i dont have an account) :(

Link to comment
Share on other sites

revert code https://github.com/ruden/vanilla-oscommerce/commit/12056c114e2e1b904a039db0400215961c3a96b2

27 minutes ago, ebarrett said:

alas, this seems to have made things worse rather than better. Now if i log in using paypal the window doesnt close and update the page, it just does the re direct on the pop up window.. also, it didnt make any difference to the payment page pop up. It still just refreshes and says i need to log in to pay (or use card details if i dont have an account) 

I'll figure out what the mistake is

Link to comment
Share on other sites

  • 4 weeks later...

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...