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

How can we help?

BACK

How to sign a request?

Question:

How to sign an API request that is sent to Alipay? How to get the parameter sign?

Answer:

Complete the following steps to sign the request:

  1. 1. Generate a pre-sign string according to the specific rules.
  2. 2. Use the corresponding signature method and key to generate parameter sign from the pre-sign string.
  3. 3. Add sign into request paramters.

The rules for generating a pre-sign string vary according to the interface type, and several specifications for the request transmission must be followed. See Dynamic Tutorial Of Signature And Generating Request for a better understanding of the corresponding rules and points of attention.


问题:

发送到支付宝的请求,加签方式是怎样的?

解答:

加签有两个步骤:

  1. 1. 根据规则生成待签名字符串。
  2. 2. 用对应的签名方法和密钥,通过待签名字符串生成签名。

但待签名字符串生成规则根据接口类型有所不同,同时在请求传输阶段也有一些注意点。

您可以参考加签动态教程,了解相应规则和注意点。

https://isandbox.alipaydev.com/melitigo/Test_083.html

NEED HELP?

NEED HELP?