PayPal API adaptive pay Authentication failed. API credentials are incorrect

我的梦境 提交于 2019-12-24 00:33:27

问题


I'm trying to make test payment with PayPal API, but response is following:

{ responseEnvelope: 
   { timestamp: '2013-08-12T03:28:07.503-07:00',
     ack: 'Failure',
     correlationId: '960a8b60a602e',
     build: '6941298' },
  error: 
   [ { errorId: '520003',
       domain: 'PLATFORM',
       subdomain: 'Application',
       severity: 'Error',
       category: 'Application',
       message: 'Authentication failed. API credentials are incorrect.' } ],
  httpStatusCode: 200 }

I created sandbox business account and make request with account credentials, but have failure.


回答1:


I was using the sandbox account, client ID and signature under the REST API. The correct sandbox account is as follows:

  • Log in to developer.paypal.com

  • Select Application from the top menu.

  • Click on sand box accounts from the left menu.

  • Here you can create sand box accounts for testing and in these accounts you can have profile. In the profile under the api credentials tab you will find the correct credentials.

  • I have attached a Screen capture.

Hope it helps.


This answer was provided by Abhisheik at wpmudev.

Note : My account is in state "Approved Conditionally" which I though was the issue. Sandbox development can, in fact, continue even in this state.

Big thanks to Abhisheik. If you read the thread, he want way above and beyond.




回答2:


I try to use credentials from developer.paypal.com, not from sandbox.paypal.com and everything is working properly now



来源:https://stackoverflow.com/questions/18185002/paypal-api-adaptive-pay-authentication-failed-api-credentials-are-incorrect

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