Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

API key configuration

Configure API keys before you start integration. API keys are used to authenticate API requests and responses. After key configuration, you will get the following keys:

  • Alipay+ public key: used to verify a response or notification sent by Alipay+.
  • Your public key: used by Alipay+ to verify your requests or responses.
  • Your private key: used to sign a request you sent to Alipay+.

Note: You must use different API keys for Alipay+ API requests in test mode and real mode.

Generate keys

To generate API keys, follow the steps:

  1. Log in to Alipay+ Dashboard.
  2. Go to Developers > Key configuration, click Generate key. Or go to Developers > Quick start, find Integration resources and tools, select Integration resources, and click Generate key.
  3. Click Confirm. The keys are generated.
  4. Click your private key to copy it. Make sure you save your private key for later use.

Note: Your private key is only displayed once and Alipay+ does not store it.

  1. Click I know.
  2. Select Confirm. Your API keys are successfully configured.

Replace keys

You can replace API keys with one click or by using tools.

Note: After replacing API keys, make sure that you substitute your private key in the live system to avoid any potential errors.

One-click replacement

  1. Log in to Alipay+ Dashboard.
  2. Go to Developers > Key configuration, click Replace key. Or go to Developers > Quick start, find Integration resources and tools, select Integration resources, and click Replace key.
  3. Select Update all public and private keys with one click by Alipay+, and click Confirm.
  4. Click Confirm replacement. The keys are generated.
  5. Click your private key to copy it. Make sure you save your private key for later use.

Note: Your private key is only displayed once and Alipay+ does not store it.

  1. Click I know.
  2. Select Confirm. Your API keys are successfully configured.

Using tools

  1. Log in to Alipay+ Dashboard.
  2. Go to Developers > Key configuration, click Replace key. Or go to Developers > Quick start, find Integration resources and tools, select Integration resources, and click Replace key.
  3. Select Use your own public and private keys. Offline tools pop up.
  4. Select For Windows or For MacOS to download tools according to your operating system.
  5. Use the tool to generate your own public and private keys. Make sure you save your private key.
  6. Go back to SME and enter your public key. Click Confirm.
  7. Select Confirm replacement. Your API keys are successfully replaced.