ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 小程序AppID获取 登录到支付宝小程序管理平台,在小程序名称下面即可找到APPID: ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/QQ%E6%88%AA%E5%9B%BE20200309151621.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) 填入基础配置-小程序AppId ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/a1859d2eb40cafa32d2fe39d96fbd24b_727x218.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) # 支付宝公钥/应用私钥 **1:登录到支付宝小程序管理平台,进入 设置»开发设置,下载密钥对生成工具,解压后运行“支付宝密钥生成器** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/6385b2171fa2fbc2e9649d03c2acf649_693x180.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/25831aa79fe9997d976ca6473225fa35_680x76.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/89c61495bf9c50747682abf8db238e8c_1289x366.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/451b63f741b3f939e67fbdf4a1daec43_857x504.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **2:登录到支付宝小程序管理平台,进入 设置»开发设置»设置应用公钥** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/471b2e63c6988ac058cf36c71e10a23b_1053x473.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/cbc4c95ef25881bb3aa85b55c5fbf33f_781x216.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **3:在“支付宝开放平台开发助手”中按下图勾选选项,点击生成,(注意生成后先不要关闭支付宝开放平台开发助手,第7步还需要用到)** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/076a664fc5070e697da6a22ffca7e1e7_1633x1021.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **4:将商户应用公钥复制到支付宝的应用公钥,点击保存** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/91e64ad4cf7beaa24e5edf592fb20434_776x311.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **5:保存成功后点击查看“支付宝公钥”,并将支付宝公钥复制到我们商城的配置输入框里** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/bc9c00d50d6ee5ffe26ba97fb9f33ab3_974x151.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/8ee9114c849dc369af31c16c55e15bc9_811x507.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **6:回到RSA签名验签工具,将商户应用私钥复制到我们商城配置输入框里** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/da7e7a405e717e89404630a33ec6457a_1253x460.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **7:点击保存,保存配置** 注:保存后系统将自动给密钥对加上‘-----BEGIN PRIVATE KEY-----’的标识。 ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/2d7d5d2740def0dd86c15b45fa20d551_551x225.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) # AES密钥(获取手机号) **1:登录到支付宝小程序管理平台,进入 设置»开发设置»内容加密方式** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/QQ%E6%88%AA%E5%9B%BE20200309152320.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **2: 通过短信或密码获取AES密钥** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/ad8264c7e742de108078dd4297e99ed0_509x252.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) # 云客服 **1:登录到支付宝小程序管理平台,运营中心-智能客服-切换完整菜单-服务配置-聊天窗管理** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/f4aa96e1a469659fd0bd13e4ce7e443c_1855x964.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **2:进入后即可找到云客服的TntInstId和Scene,将两者复制到商城的对应配置项里:** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/910ef9adf4b0252e35852f4f6c7f0942_592x437.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/daee94d52cabbfb1fda97eecbee40ac6_862x463.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) # 域名配置 **登录到支付宝小程序管理平台,进入 设置»开发设置»httpRequest接口请求域名白名单,点击添加自己的网站域名域名** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/5f0bf5f3ab1ed439df41863c9214d55e_986x153.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **登录到支付宝小程序管理平台,进入 设置»开发设置»H5域名配置,点击添加自己的网站域名域名** # 自动提现(转账) **若要使用自动提现功能(分销商,多商户提现自动打款),必须登陆商户支付宝账户(不是小程序账户)-产品大全签约 ([https://b.alipay.com/signing/productDetail.htm?productId=I1012000291000001000](https://b.alipay.com/signing/productDetail.htm?productId=I1012000291000001000))** **1: 登录到支付宝开放平台,并创建网页应用** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/c22b81db09ac8591a7e0d424a2e709af_1090x413.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/b6a24e1b3c03c5d9e4a394888a0e373f_739x513.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **2: 签约单笔转账到账户** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/80fdddcb286fb7b8d76197b23bf520c0_843x717.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **3:设置接口加密方式** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/b984fd30a27fd0b2f7d33fe60d282d33_965x331.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **4:必须选择公钥证书 下载支付宝密钥生成器** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/1580ca5309bfe4f4b82dd687ca7d8832_688x437.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) **5:打开支付宝密钥生成器 选择PKCS1(非JAVA使用) - 生成密钥- 点击获取 -打开文件位置 并上传CSR文件在线生成证书** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/c64fff4ae8bb56a431513d74b159afb9_762x650.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) 注:请妥善保存好商户**应用私钥** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/85c3640b8ff47c7875d20392afb26d44_800x700.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) 注:组织/公司 必须和公司主体名称保持一致。 **6:获取证书 并填入后台** ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/1788c3d501f7a31bb402c97f193137d8_701x307.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/26bc3ea9f881eff23f9fea3d42742e33_1419x835.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg) 注:**应用私钥**保存后系统将自动给密钥对加上‘-----BEGIN PRIVATE KEY-----’的标识。 \*\*7:获取app\_id 返回支付宝开放平台 网页&移动应用首页 \*\* ![](https://git.kancloud.cn/repos/fjwcf881203/xcxscxt/raw/24e086b2b9aa5e0aa79125cf7a86031fb481a944/images/QQ%E6%88%AA%E5%9B%BE20200309152931.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjg2NTA1MjIsImlhdCI6MTYyODYwNzMyMiwicmVwb3NpdG9yeSI6ImZqd2NmODgxMjAzXC94Y3hzY3h0IiwidXNlciI6eyJ1c2VybmFtZSI6ImZqd2NmODgxMjAzIiwibmFtZSI6Ilx1Nzk4Zlx1NWVmYVx1NWZhZVx1OGQyMlx1NWJjYyIsImVtYWlsIjoiMTgxMDkwMzg3NkBxcS5jb20iLCJ0b2tlbiI6IjJlNjZkYzYwMGViZTA4OTRiNTUzMWU1OGM3OTE2ZTllIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.6Tkh84i5g--G-wXk_MzKCAgwprYeAkNE2LsrHP-NmKg)