🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
<article><h1 class="sc-jTQDnj PWYCG">支付宝基础配置</h1><section class="sc-beySbM hbxJnH"><h1><a tabindex="-1" id="小程序appid获取" class="sc-hLQRIN dbkbOC"></a>小程序AppID获取</h1><p>登录到支付宝小程序管理平台,在小程序名称下面即可找到APPID:<br> ![](https://img.kancloud.cn/82/52/8252edacb6cf0976ab41b0cf3ec7ff05_582x256.png) </p><p>填入基础配置-小程序AppId<br><img alt="" src="https://help.zjhejiang.com/lfs/0f7024881301f12d294adb5e23db1f27a4a6ccfe648bb15185ae7c4a9424773b.dat"></p><hr><h1><a tabindex="-1" id="支付宝公钥应用私钥" class="sc-hLQRIN dbkbOC"></a>支付宝公钥/应用私钥</h1><p><strong>1:登录到支付宝小程序管理平台,进入 开发设置,下载密钥对生成工具,解压后运行“支付宝密钥生成器</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/48fdde1f0175db3da707f4b9f90a08a526043aabbead9456e188f9f1c550e38c.dat"><br><img alt="" src="https://help.zjhejiang.com/lfs/41279a6dff2b5a756fbc01f63e45063982aab810b401908a3ba51d5b9b57ac50.dat"><br><img alt="" src="https://help.zjhejiang.com/lfs/7fc970c62c153cc87d7762a3d028f54a0737142255fd51832575984ad8d3d7ed.dat"><br><img alt="" src="https://help.zjhejiang.com/lfs/d933923f3138325f384be9e3f2c74deb387e42d422c740924ef8ab0c25307eb4.dat"></p><p><strong>2:登录到支付宝小程序管理平台,进入 开发设置»设置应用公钥</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/48fdde1f0175db3da707f4b9f90a08a526043aabbead9456e188f9f1c550e38c.dat"><br>![]<img alt="" src="https://help.zjhejiang.com/lfs/bb291c6239876163c704b3943c28b3ab74bec16b21f69456ecc40347b954ea74.dat"></p><p><strong>3:在“支付宝开放平台开发助手”中按下图勾选选项,点击生成,(注意生成后先不要关闭支付宝开放平台开发助手,第7步还需要用到)</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/ef8e97997bc97d59be960289035efd6f53c449d1e43803b3f7ee0942dd73ed0a.dat"><br><img alt="" src="https://help.zjhejiang.com/lfs/c99258386e286a88095c5ab0105ef6d0b5a4940d201ed3bbdccb953a3f9156d9.dat"></p><p><strong>4:将商户应用公钥复制到支付宝的应用公钥,点击保存</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/0f8a103ca8efd22ef2ecf21f29ed09d346a942937ed1af78f9373e067458262f.dat"></p><p><strong>5:保存成功后点击查看“支付宝公钥”,并将支付宝公钥复制到我们商城的配置输入框里</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/2d339e39540d6501d7c400db563af8890a476c031526160373998b88546d592d.dat"><br><img alt="" src="https://box.kancloud.cn/8ee9114c849dc369af31c16c55e15bc9_811x507.png"></p><p><strong>6:回到RSA签名验签工具,将商户应用私钥复制到我们商城配置输入框里</strong><br><img alt="" src="https://box.kancloud.cn/da7e7a405e717e89404630a33ec6457a_1253x460.png"></p><p><strong>7:点击保存,保存配置</strong><br>注:保存后系统将自动给密钥对加上‘-----BEGIN PRIVATE KEY-----’的标识。<br><img alt="" src="https://box.kancloud.cn/2d7d5d2740def0dd86c15b45fa20d551_551x225.png"></p><hr><h1><a tabindex="-1" id="aes密钥获取手机号" class="sc-hLQRIN dbkbOC"></a>AES密钥(获取手机号)</h1><p><strong>1:登录到支付宝小程序管理平台,进入 设置»开发设置</strong><br> ![](https://img.kancloud.cn/c6/14/c614ad68bacf3f282103a55ee355733e_1072x546.png) <br><strong>2: 通过短信或密码获取AES密钥</strong><br> ![](https://img.kancloud.cn/6f/9e/6f9e330e37e443af5d332c81c1179636_1158x491.png) <br><img alt="" src="https://help.zjhejiang.com/lfs/3775ea2c99cdda6ff38c7631ccd31b140b63ddf6fafd4f5cc42e8b673d73eccb.dat"><br><img alt="" src="https://help.zjhejiang.com/lfs/8028d1e5959dcd4ba52cdc22a50e5da8f28ac47289f1625667e194dfbc329857.dat"></p><h1><a tabindex="-1" id="云客服-该功能已被支付宝禁用j" class="sc-hLQRIN dbkbOC"></a>云客服-该功能已被支付宝禁用j</h1><h1><a tabindex="-1" id="域名配置" class="sc-hLQRIN dbkbOC"></a>域名配置</h1><p><strong>登录到支付宝小程序管理平台,进入 设置»开发设置»httpRequest接口请求域名白名单,点击添加自己的网站域名域名</strong><br><img alt="" src="https://box.kancloud.cn/5f0bf5f3ab1ed439df41863c9214d55e_986x153.png"><br><strong>登录到支付宝小程序管理平台,进入 设置»开发设置»H5域名配置,点击添加自己的网站域名域名</strong><br><img alt="" src="https://box.kancloud.cn/bc7bad83c801e5fa25c116345ccaf604_944x172.png"></p><h1><a tabindex="-1" id="自动提现转账" class="sc-hLQRIN dbkbOC"></a>自动提现(转账)</h1><p><strong>若要使用自动提现功能(分销商,多商户提现自动打款),必须登陆商户支付宝账户(不是小程序账户)-产品大全签约<br>(<a href="https://b.alipay.com/signing/productDetail.htm?productId=I1012000291000001000" target="_blank" rel="noopener noreferrer">https://b.alipay.com/signing/productDetail.htm?productId=I1012000291000001000</a>)</strong><br><strong>1: 登录到支付宝开放平台,并创建网页应用</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/4b35d3acb1bc8b6d8bbec7700b6b648c2bd1acf5f773a8916c5d28c18435c464.dat"><br><img alt="" src="https://help.zjhejiang.com/lfs/35215d02a351edd0a0bd4a30ae526313af6313d22a08b935869a7d29ad6a2b74.dat"><br><strong>2: 签约转账到支付宝账户</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/bf83917f4753c3c89b32de2c6bd75015aa5862d357536deeeb1277ca621f2024.dat"><br><strong>3:设置接口加密方式</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/cbcd76fc2988de52fdb6eed1a602df2cc976f7c1a44ff33df41169bb9656053a.dat"><br><strong>4:必须选择公钥证书 下载支付宝密钥生成器</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/0c513d474abdf867f247a32a0772d02fecd30c72698e278a858387fac201fd0b.dat"><br><strong>5:打开支付宝密钥生成器 选择PKCS1(非JAVA使用) - 下面点击获取 -打开文件位置 并上传CSR文件在线生成证书</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/bb97b09b96118a504bed90a1b9b09428f2c7f58cb94582820ce8d3180b6e3bb7.dat"><br>注:请妥善保存好商户<strong>应用私钥</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/5ba916937180d1a8f4d22d338a259a658baaed3f535fe4a5f4b140580141fa7c.dat"><br>注:组织/公司 必须和公司主体名称保持一致。<br><strong>6:获取证书 并填入后台</strong><br><img alt="" src="https://help.zjhejiang.com/lfs/034dd5e87589890ea69af4c59bce21257e74805c9c6b529b1e193ed3f1517dac.dat"><br><img alt="" src="https://help.zjhejiang.com/lfs/eca0115bb544102b01c218e34967290aa09592d122d612a312e9d3e7d4d21074.dat"><br>注:<strong>应用私钥</strong>保存后系统将自动给密钥对加上‘-----BEGIN PRIVATE KEY-----’的标识。<br>**7:获取app_id 返回支付宝开放平台 网页&amp;移动应用首页 **<br> ![](https://img.kancloud.cn/8e/36/8e36f6d6584c933a7fdff04ed989a4c7_846x576.png) </p></section></article>