Hi all,
I am trying to sort out getting an Oauth2 token from PayPal sandbox. I have my app name and my client ID and my Client Secret. When I run with libcurl it works and I do get a Token.
However, with Oauth (web83.app ) I have it set up with following picture.
Hi Bruce,
I did set up the Desktop App the correct way and it did not work. It could not log in - it just hung on “trying to connect”. I found that what I needed was the NetTalk CLient. So, I moved over to there. I successfully set up the CURL example and I did successfully get a token.
However, my NT OAuth client kept giving me the error: “Record not found”.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
From PAY Pal developer:
Exchange your client ID and client secret for an access token. The access token authenticates your app when calling PayPal REST APIs. You can call the PayPal OAuth API in any language. The following examples show you how to get your access token using cURL or Postman:
>> I did set up the Desktop App the correct way and it did not work.
then it was not set up the correct way.
>> It could not log in - it just hung on “trying to connect”. I found that what I needed was the NetTalk Client.
you can go the NetWebClient route, but it is a lot of work, and a lot of steps.
The NetOAuth class is what wraps all that up into a single call.
>> So, I moved over to there. I successfully set up the CURL example and I did successfully get a token.
However, my NT OAuth client kept giving me the error: “Record not found”.
What I recommend you do is set up the Desktop example app with all your settings, then send that to me so I can have a look.
From there I can suggest what you have done wrong.
Also include links to the PayPal OAuth documentatioin - that will have all the necessary URL’s etc.
>> client_credentials
I would be surprised if it worked with client_credentials. Not impossible, but unlikely
FUrther information:
The above parameters are for the DESKTOP version.
For NetClient version in SANDBOX mode,
the Parameters are the same but:
-you have to set the redirect URL to ' ' in order to get a sandbox token.
Loc:OAuthParms:DropBox.pRedirectURL = '' ! for sandbox testing it is blank -otherwise will get redirect URL does not match error.