用于REST API的帐户设置 - 签名或证书凭据选项?

时间:2015-07-28 13:59:39

标签: api rest paypal oauth-2.0 credentials

我的老板正在建立一个英国PayPal帐户,用于REST API直接信用卡付款和付款。

在此过程中,他被要求在签名和证书凭证之间进行选择。

但据我所知,REST API使用OAuth 2.0,因此我们需要的是与应用程序关联的ID和密码。

我们应该如何进行?

1 个答案:

答案 0 :(得分:2)

Setting up your credentials for REST is done on the developer site https://developer.paypal.com/. You are correct that the choice between "Signature" and "Certificate" is irrelevant in this case. Try the following:

  1. Go to https://developer.paypal.com and log in using the email address and password of the live PayPal account that will be receiving payments.

  2. Click on “Dashboard” up at the top of the page. You should see a list of your apps here. (If, instead, you see a sentence that says “Create your first app to view it here”, you will need to create at least 1 app)

  3. Click the app name. You’ll see your client ID and Secret for the Sandbox. Toggle your view to “Live” in the upper right corner of the page to see the credentials for the live environment.

  4. You can click on “Account Eligibility” to see what features are available for Live. If the feature isn’t already added there will be an “Enable” link to the right. Clicking on the link will start the request process for that feature.