I am using .NET SDK for PayPal and I want to use REST API (Agreements API) in my application. My app was tested with sandbox credentials and worked fine but does not work with live credentials. I got 401 HTTP code response when it comes to creating a Plan. I am a non-U. S. developer. Is there any possibility to use Agreements API outside US or should I move to NVP/SOAP APIs?
Related
I've created a new sandbox app in paypal and checked all controls under settings.
I'm manually making a request to get an access token using cURL as suggested in the docs.
Then I make a POST request to /v2/customer/partner-referrals. I'm simply copy-pasting the request from the docs from here.
The response I get is:
HTTP/1.1 403 Forbidden
...
{
"name":"NOT_AUTHORIZED",
"message":"Authorization failed due to insufficient permissions.",
"debug_id":"...",
"information_link":"",
"details":[{
"issue":"MISSING_SCOPES",
"description":"User doesn't have this API in their scope"
}],
"links":[]
}
The partner onboarding page says, that I get 401 Unauthorized if the account doesn't have permissions to access the commerce API. But at the same time I can't find a way to request certain APIs to be included in the scope.
How can I authorize a request to PayPal Commerce API ?
UPD
There's an additional question which may actually be a reason for my issue. Am I required to apply and be approved for the Parter Program before I can use sandbox APIs ?
There's a flow chart on the paypal website for PayPal Commerce Platform integration. It clearly shows that develop the app while using sandbox while I wait for the app approval. How show I interpret this image then?
The fastest way to get started is to start the Engineering and
Business workflows at the same time.
When testing this on sandbox you need to have these specific scopes added to your account.
To do this you'll have to contact PayPal-support using this link:
[https://www.paypal-support.com/s/contactsupport?language=en_US.][1]
Let Support know you would like to add the Sandbox Scopes for PayPal Commerce Platform for Partners to your sandbox account and they should be able to help you out!
I hope this can help you!
Are you an approved PayPal partner? The form to request so is linked from the onboarding page in your question...
I'm working on a php project that needs to integrate Paypal API's. I've chosen REST API's. But I've a business account(sandbox). Is it possible to call REST API's using this account type?
You need to log into developer.paypal.com using any live PayPal account, via https://www.paypal.com/signin?returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fapplications
If you don't have a live PayPal account, create one.
Once logged in, the number of REST API apps and corresponding sandbox accounts that you can manage is unlimited.
I am experienced with REST API development, but a newb to paypal's apis. A client asked me to add payments to a web game I am working on for him, the transaction will be done on a webpage, and my plan is to have a script put the item in a DB for later use.
Which Paypal API would I want to use for in game credits? there is just so many on their screen.
I'd recommend getting started with the basic client-side integration:
https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/basic-integration/
I have a Java application that has just been updated with e-commerce features that use the Paypal REST API (https://developer.paypal.com/docs/api/).
I have multiple customers who run this application, each of them can log in to their own admin panel and manage their store and other features.
The Java client for Paypal REST API is working, I have tested it in the Sandbox of my own Paypal account and also in the live environment.
Question: Will each customer have to go into their Paypal account and activate the REST API to generate their key/secret for use in the Java app or is their a way for me to pay multiple PP acounts from the App/key/secret that is already active for my own PP account?
The only thing the Java app is doing with the PP API is creating and executing a payment.
If each customer has to create their own key/secret is there a quick way for them to do this from their PP admin panel? Currently the only way I know is to go into the developer.paypal.com section of the site, which doesn't seem very intuitive for a non techy.
At this time the PayPal REST API does not support third party payments in that way. The customer would need to use developer.paypal.com as you suggested to get their own PayPal REST credentials.
You can collect money and send it out using your own REST credentials but this would make you the liable receiver for the purchase.
PayPal has solutions outside of the REST API that might work for you here: https://developer.paypal.com/docs/marketplace-split-payments/
The Classic API does have a subject option, the subject is the third party. You do need permissions for some of the API calls; however, the permissions API can ease that process.
I setup a paypal rest api application for my account. I'm using the production credentials given in the hidden "Live credentials" section of the app.
I'm using the ruby gem client (https://github.com/paypal/rest-api-sdk-ruby) for this, and when I do Payment.all( :count => 100 ) I get zero results, even though my live paypal account has payments made to it in the last couple of days.
Am I doing something wrong, or do I just not understand what the REST API should be returning?
All I'm trying to do is read my incoming payments to my paypal account.
That call will only return the list of RESTful transactions so if you haven't received any transactions generated from the RESTful APIs, then you won't have any results.