Comments (8)
The return url has to be the full URL that PayPal will call, i.e.:
Note: You MUST set the redirect URL of your app on developer.paypal.com to match the server to which you deploy the paypal-retail-node code with the path /returnFromPayPal appended. For example, if you've deployed to http://pph-retail-node.herokuapp.com, the return URL MUST be set to http://pph-retail-node.herokuapp.com/returnFromPayPal
from paypal-retail-node.
Also note it can take a few hours to take effect, so don't worry if it doesn't work right after the change (apologies that this is the case - you could create a new app if that works for you). This server (paypal-retail-node server) will redirect to APP_REDIRECT_URL after doing it's job converting the auth code to an access token and refresh url, so that's where your app comes into play.
from paypal-retail-node.
Awesome. I'm pretty sure that was the issue. I made the changes and now I'm waiting until the changes take into place. I'll try it out tonight and let you know if this did the trick. Thanks for the fast response.
from paypal-retail-node.
@djMax I couldn't get that to work. For the past month I've been using the web signing page comes with the sample paypal here app. Here are the settings that I have:
- Heroku:
- App_Redirect_URL: myapp://paypal/loggedIn
- Root_URL: http://serverName.herokuapp.com (serverName being the custom name of my server)
- Secret and client ID from paypal developer app
- Paypal developer page:
- Created a new app (myapp)
- Return_URL: http://serverName.herokuapp.com/returnFromPayPal
- in my android app I go to MID_TIER_URL_FOR_SANDBOX = "http://serverName.herokuapp.com/toPayPal/sandbox"
Result is "Login with PayPal Error! invalid_scope: Client Validation Error: Invalid scope."
Even when I access the same url through the web as well. I would really appreciate it if you could tell me what I am doing wrong. Thanks
from paypal-retail-node.
That would suggest that a scope you need is missing from your app on the PayPal developer page. Is "PayPal Here" checked there? Do you get a "correlationId" or "debugId" along with that error?
from paypal-retail-node.
It gives me absolutely no other ID and paypal here is checked inside my app. I'm attaching pictures just in case.
Another question, the name of the app created in paypal developer has nothing to do with the package name or the actual name of my app, does it?
from paypal-retail-node.
So I just read the readme file on the retail node github page and I noticed that there are first and third party uses of this node. What I am interested in is the first party where I log in once and then I receive a modified refresh token that stays valid until I disable it. I don't know if that changes anything. Made me a bit confused for sure cause I don't know if that's any different now. Do I not need an APP_REDIRECT_URL anymore?
from paypal-retail-node.
Found the issue finally. So just in case someone else had the same issue as me, you need to make sure that the information that the android app is requesting matching what your paypal server app is providing. You can do this by going to paypal developer website, my apps & credentials, click on your app, click on advanced options on Log in with paypal, make sure that Full name is checked under Personal information, and all items under Address information is checked, add a privacy policy URL, User agreeement URL, and lastly redo all this for your live account as well. That solved my problem.
from paypal-retail-node.
Related Issues (9)
- PayPalHere: The composite token string was not in the expected format HOT 41
- Error with Heroku server setup HOT 1
- Is there any demo code other than Node JS?
- Asp.net with c# code for A module and midtier server to help integrate mobile applications with the PayPal Retail SDK
- onErrorWhileSettingAccessTokenToSDK
- PayPal Here sample app doesn't work with live HOT 1
- Sample server returns internal server error after granting scope HOT 1
- Error while generating token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paypal-retail-node.