主頁
  • 付款和轉帳
  • 糾紛申訴和限制
  • 我的帳戶
  • 我的錢包
  • 登入和安全資訊
  • 賣家工具

How do I create REST API credentials?

REST API credentials include a client ID and secret. Here's how you generate the credentials:

  1. Log in to the PayPal Developer Portal using the same credentials you use for PayPal.
  2. On the Apps & Credentials page, click Live or Sandbox depending on whether you need an app for testing (Sandbox) or going live (Live).
  3. Click Create App under REST API apps. Any previously created REST API apps will appear in the table above the Create App button.
  4. Enter the name of your REST API app in the App Name field, and select a Sandbox business account to associate with your app.
    Note: Remember that you can't use a Live credit card in Sandbox, and you can't use a test credit card in your Live account.
  5. Click Create App.
    Your credentials, the client ID and secret, are displayed on the app details page that displays after you click Create App.
  6. Request permissions for REST API features that apply to your integration, such as:
    • Invoicing API
    • PayPal Here
    • Subscriptions
    • PayPal payments
    • Connect with PayPal
    • Customer Disputes API
    • Payouts
  7. When you are ready to take your code live, make sure you create a Live app to get live credentials.

Use the Live and Sandbox toggle at the top of Apps & Credentials to switch between app types and view your credentials for each.

Notes:

  • You should be able to complete transactions in the Live environment right away.
  • Both environments use the same URL. Only the REST API credentials (Client ID and Secret) tell you which environment you're in.
  • Don't share your Live REST API credentials with anyone.

Refer to Get Started on the PayPal Developer Portal for more information about getting credentials, an access token, and creating sandbox test accounts.

此文章對你有幫助嗎?

我們可以透過更多方式提供協助

你認為我們的表現如何?
參與問卷調查

如你繼續瀏覽,我們將使用 Cookie 來改善和提供為你而設的體驗。可否讓我們同時使用 Cookie 向你展示個人化廣告?了解更多並管理你的 Cookie