当前位置:   article > 正文

支付宝的universal link-支付宝iOS启动命令-URL Schemes一键打开支付宝-uniapp支付宝登录授权_scheme=alipays%3a%2f%2fplatformapi

scheme=alipays%3a%2f%2fplatformapi

效果图

实验过程

支付宝的universal link-支付宝iOS启动命令-URL Schemes一键打开支付宝-uniapp支付宝登录授权

测试代码

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>Universal Link启动支付宝 - 支付宝iOS启动测试 - Rudon</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. </head>
  8. <body style="word-break: break-all;">
  9. <div style="padding: 20px;">
  10. <h2>支付宝</h2>
  11. <b>URL Schemes (安卓、iOS v9以前)</b> <div>alipays://platformapi/startapp?appId=20000067&url=</div><br />
  12. <b>Universal Link (iOS v9+)</b> <div>https://render.alipay.com/p/s/i/</div><br />
  13. <b>安卓苹果通用</b> <div>https://render.alipay.com/p/s/i/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D20000067%26url%3D</div>
  14. </div>
  15. <div style="padding: 20px;">
  16. <h3>1)不显示支付宝网页,直接打开支付宝 - 直接进入蚂蚁森林</h3>
  17. <div>
  18. <b>商家app内部不弹窗询问,手机浏览器内弹窗询问</b>
  19. </div>
  20. <a href="alipays://platformapi/startapp?appId=60000002&url=%2Fwww%2Fhome.html%3Fsource%3Dfxyoushangjiao%26shareId%3D1FdlVdzs4acQ902SOoS%252B%252ByE38f6AJhcfDlYQCrLWN1g%253D&chInfo=ch_share__chsub_CopyLink&fxzjshareChinfo=ch_share__chsub_CopyLink&apshareid=732CB158-5AA3-4A9A-A08D-42153DAD6108&shareBizType=antforesthongbao">
  21. alipays://platformapi/startapp?appId=60000002&url=%2Fwww%2Fhome.html%3Fsource%3Dfxyoushangjiao%26shareId%3D1FdlVdzs4acQ902SOoS%252B%252ByE38f6AJhcfDlYQCrLWN1g%253D&chInfo=ch_share__chsub_CopyLink&fxzjshareChinfo=ch_share__chsub_CopyLink&apshareid=732CB158-5AA3-4A9A-A08D-42153DAD6108&shareBizType=antforesthongbao
  22. </a>
  23. </div>
  24. <div style="padding: 20px;">
  25. <h3>2)显示支付宝网页,包含“打开支付宝”、“下载支付宝”按钮 - 直接进入蚂蚁森林</h3>
  26. <div>
  27. <b>弹窗询问</b>
  28. </div>
  29. <a href="https://render.alipay.com/p/s/i/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D60000002%26url%3D%252Fwww%252Fhome.html%253Fsource%253Dfxyoushangjiao%2526shareId%253D1FdlVdzs4acQ902SOoS%25252B%25252ByE38f6AJhcfDlYQCrLWN1g%25253D%26chInfo%3Dch_share__chsub_CopyLink%26fxzjshareChinfo%3Dch_share__chsub_CopyLink%26apshareid%3D732CB158-5AA3-4A9A-A08D-42153DAD6108%26shareBizType%3Dantforesthongbao">
  30. https://render.alipay.com/p/s/i/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D60000002%26url%3D%252Fwww%252Fhome.html%253Fsource%253Dfxyoushangjiao%2526shareId%253D1FdlVdzs4acQ902SOoS%25252B%25252ByE38f6AJhcfDlYQCrLWN1g%25253D%26chInfo%3Dch_share__chsub_CopyLink%26fxzjshareChinfo%3Dch_share__chsub_CopyLink%26apshareid%3D732CB158-5AA3-4A9A-A08D-42153DAD6108%26shareBizType%3Dantforesthongbao
  31. </a>
  32. </div>
  33. <div style="padding: 20px;">
  34. <h3>3)显示支付宝网页,包含“打开支付宝”、“下载支付宝”按钮 - 进入支付宝APP首页</h3>
  35. <div>
  36. <b>弹窗询问</b>
  37. </div>
  38. <a href="https://render.alipay.com/p/s/i/">
  39. https://render.alipay.com/p/s/i/
  40. </a>
  41. </div>
  42. <div style="padding: 40px 20px;">
  43. <h4>
  44. 支付宝H5授权登录-获取auth_code方法:
  45. </h4>
  46. <div>
  47. 支付宝APP内置浏览器,打开
  48. <a href="">
  49. https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=商家的APPID&scope=auth_user&redirect_uri=回调地址ENCODED_URL
  50. </a>
  51. ,详询https://opendocs.alipay.com/open/53/104114
  52. </div>
  53. </div>
  54. </body>
  55. </html>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/700383
推荐阅读
相关标签
  

闽ICP备14008679号