Paypal express sandbox access deined

假装没事ソ 提交于 2019-12-23 19:54:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!