ebarrett Posted June 16, 2021 Posted June 16, 2021 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 Quote
ebarrett Posted June 17, 2021 Author Posted June 17, 2021 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. Quote
ruden Posted June 18, 2021 Posted June 18, 2021 @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 Smoky Barnable 1 Quote
ebarrett Posted June 18, 2021 Author Posted June 18, 2021 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 Quote
Demitry Posted June 19, 2021 Posted June 19, 2021 (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 June 19, 2021 by Demitry Quote 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
ruden Posted June 19, 2021 Posted June 19, 2021 (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 June 19, 2021 by ruden Quote
ebarrett Posted June 21, 2021 Author Posted June 21, 2021 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? Quote
ruden Posted June 21, 2021 Posted June 21, 2021 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/ Quote
ebarrett Posted June 21, 2021 Author Posted June 21, 2021 4 minutes ago, ruden said: Please test your actions on the demo site https://demo.osclab.com/vanilla-oscommerce/ What exactly did you want me to check on this demo site? All I can see is that that one lets me log in correctly at the checkout stage? Quote
ebarrett Posted July 7, 2021 Author Posted July 7, 2021 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! ruden 1 Quote
ruden Posted July 10, 2021 Posted July 10, 2021 @ebarrett replace code in file includes/modules/content/login/cm_paypal_login.php https://raw.githubusercontent.com/ruden/vanilla-oscommerce/7eed5ef7fb7f4ab07a0bbcfa97008e136211d0c8/catalog/includes/modules/content/login/cm_paypal_login.php Smoky Barnable 1 Quote
ebarrett Posted July 12, 2021 Author Posted July 12, 2021 On 7/10/2021 at 9:27 AM, ruden said: @ebarrett replace code in file includes/modules/content/login/cm_paypal_login.php https://raw.githubusercontent.com/ruden/vanilla-oscommerce/7eed5ef7fb7f4ab07a0bbcfa97008e136211d0c8/catalog/includes/modules/content/login/cm_paypal_login.php 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) Quote
ruden Posted July 12, 2021 Posted July 12, 2021 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 Quote
ebarrett Posted July 12, 2021 Author Posted July 12, 2021 1 hour ago, ruden said: revert code https://github.com/ruden/vanilla-oscommerce/commit/12056c114e2e1b904a039db0400215961c3a96b2 I'll figure out what the mistake is Okies, thank you - i appreciate all your help. This is driving me nuts! I have made the revert as you suggested Quote
Brandon Micks Posted August 9, 2021 Posted August 9, 2021 I had the same problem, thanks for this. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.