Jump to content
ebarrett

LOGIN WITH PAYPAL errors and multiple modules??

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 :) 

 

Share this post


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

Share this post


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

 

Share this post


Link to post
Share on other sites
Posted (edited)
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

Share this post


Link to post
Share on other sites
Posted (edited)
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

Vanilla osCommerce this fork osCommerce v2.3.5

Download | Demo | Support

 

Share this post


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

 

 

Share this post


Link to post
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/


Vanilla osCommerce this fork osCommerce v2.3.5

Download | Demo | Support

 

Share this post


Link to post
Share on other sites

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! 

Share this post


Link to post
Share on other sites

Vanilla osCommerce this fork osCommerce v2.3.5

Download | Demo | Support

 

Share this post


Link to post
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) :(

Share this post


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


Vanilla osCommerce this fork osCommerce v2.3.5

Download | Demo | Support

 

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

×