支付宝支付申请流程记录

按照官方文档生成RSA密钥 注意根据开发语言选择密钥格式

会同时生成公钥和私钥,

  • 应用私钥 需填写到代码中供签名时使用
  • 应用公钥 需提供给支付宝账号管理者上传到支付宝开放平台,应用公钥设置完毕后,可以获取 支付宝公钥 , 服务端代码中用的是支付宝公钥

支付宝返回的是类似如下格式的字符串

1
app_id=2017031301234567&method=alipay.trade.app.pay&format=JSON&charset=utf-8&sign_type=RSA2&version=1.0&return_url=http%3A%2F%2F47.96.170.156%3A8082%2Fwenran%2Fapi%2FaliReturn&notify_url=http%3A%2F%2F47.96.170.156%3A8082%2Fwenran%2Fapi%2FaliNotify&timestamp=2018-03-16+14%3A09%3A21&sign=QzwkPrpPLCCMUyJ%2FGXAeXHWI6jx0W9Am1SlqV9tN7uPZ0fENEpgTgl6WDxKMUZIcVyeJCSqwUhnE%2B5RgmFzDBaM4NIVqsFKxzWMDbz3w%2FqwpUUjTk8JJGoGpPZgrUmSGqAk%2B4IqahiCVhXSm48hMJB8QNW64Isisl%2BqIyXNdGF4A0yueQwuaUd29IOzlVMC8kU0o70eLne7OWSankv5LI00AoY0nu2p4QgwT0ATe0DUqixYA8T3EL1xvmAA7H4IWdtGmTDUtGpBdH2uObrhnNLQBgjedvzo8BLtkuLghEaOKGU%2BCMrP46iCVokdWotY8ZVFE610pUBVLYXMISFfHPg%3D%3D&biz_content=%7B%22out_trade_no%22%3A1521180561%2C%22total_amount%22%3A%220.01%22%2C%22subject%22%3A%22test+subject+-+%5Cu6d4b%5Cu8bd5%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%7D

这个字符串可以直接返回给移动端,移动端用于调起支付宝SDK。

记录工作,记录成长,您的支持将鼓励我继续创作!