问题
I'm trying to use Paypal sandbox API and getting this response
Access Denied
You don't have permission to access "http://api-3t.sandbox.paypal.com/nvp" on this server.
this is what im getting when the server tries to post data to paypal
Im using curl to post the data
Why is that ?
回答1:
The sandbox environment is set up to only allow HTTP 1.1 so you will get this access denied error if you are using HTTP 1.0. The change to HTTP 1.1 was made a long while ago but was backwards compatible. However, in anticipation of these changes also coming to the Live environment, it was decided to turn off HTTP 1.0 support in Sandbox so that folks could properly test their integrations with HTTP 1.1. You can review the following link that outlines the upcoming change in the Live environment to ensure that you are properly configured on your end.
https://www.paypal-notify.com/eventnotification/event_details?eventId=4283
回答2:
Well i have contacted Paypal support and they said the problem is that i should not use the "http://api-3t.sandbox.paypal.com/nvp" Endpoint but use "https://api-3t.sandbox.paypal.com/nvp" Instead
That solved my issue
来源:https://stackoverflow.com/questions/22172829/paypal-express-sandbox-access-deined