4补缴订单支付.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8">
  5. <style type="text/css">
  6. <!--
  7. @import url(md.css);
  8. -->
  9. </style>
  10. </head>
  11. <body>
  12. <h2>4补缴订单支付</h2>
  13. <p>补差额订单提交社保服务器端生成支付需要的相关数据。</p>
  14. <h2>请求</h2>
  15. <blockquote>
  16. <p><strong>URI</strong></p>
  17. </blockquote>
  18. <pre><code>// /sbl/added/pay/v1 POST
  19. /sbl/added/pay/v2 POST // 支付宝支付签名放在服务器端。 2018-11-07
  20. </code></pre>
  21. <blockquote>
  22. <p><strong>参数</strong></p>
  23. </blockquote>
  24. <pre><code> String key; 登录标识
  25. String added_no; 补缴订单号,见列表
  26. int pay_channel; 支付渠道
  27. </code></pre>
  28. <h2>响应</h2>
  29. <blockquote>
  30. <p><strong>状态码</strong></p>
  31. </blockquote>
  32. <pre><code>600 无效的订单号、数据不能为空、参数异常等
  33. 601 无效的用户标识
  34. 10004 需要登录
  35. </code></pre>
  36. <blockquote>
  37. <p><strong>DATA字段说明</strong></p>
  38. </blockquote>
  39. <pre><code> String order_no 订单号(32长度内)
  40. double price 总金额
  41. String notify_url; 用于第三方支付回调本系统 用于alipay
  42. </code></pre>
  43. <blockquote>
  44. <p><strong>数据范例</strong></p>
  45. </blockquote>
  46. <pre><code>// v2 支付宝响应
  47. {
  48. &quot;msg&quot;: &quot;&quot;,
  49. &quot;data&quot;: &quot;partner=\&quot;2088021344618397\&quot;
  50. &amp;seller_id=\&quot;service@shanp.com\&quot;
  51. &amp;out_trade_no=\&quot;BJ0000000004201808788726\&quot;
  52. &amp;subject=\&quot;“我的社保” 支付\&quot;
  53. &amp;body=\&quot;补差额\&quot;
  54. &amp;total_fee=\&quot;0.04\&quot;
  55. &amp;notify_url=\&quot;http://192.168.2.199/pay/ali/app/notify/v1\&quot;
  56. &amp;service=\&quot;mobile.securitypay.pay\&quot;
  57. &amp;payment_type=\&quot;1\&quot;
  58. &amp;_input_charset=\&quot;utf-8\&quot;
  59. &amp;it_b_pay=\&quot;30m\&quot;
  60. &amp;sign=\&quot;this is sign str base64\&quot;
  61. &amp;sign_type=\&quot;RSA2\&quot;&quot;,
  62. &quot;code&quot;: 200
  63. }
  64. // v1 支付宝支付的响应
  65. {
  66. &quot;data&quot;: {
  67. &quot;order_no&quot;: &quot;BJ11524372652587&quot;,
  68. &quot;notify_url&quot;: &quot;http://pay-site/pay/ali/app/notify/v1&quot;,
  69. &quot;price&quot;: 1017.75
  70. },
  71. &quot;msg&quot;: &quot;&quot;,
  72. &quot;code&quot;: 200
  73. }
  74. // 微信支付的响应
  75. {
  76. &quot;data&quot;: {
  77. &quot;order_no&quot;: &quot;BJ11524372652587&quot;,
  78. &quot;wx&quot;: {
  79. &quot;appid&quot;: &quot;wxb7ae6e9f32e0bdb2&quot;,
  80. &quot;noncestr&quot;: &quot;08xVtTSFCuYsZmhF&quot;,
  81. &quot;timestamp&quot;: &quot;1441879029&quot;,
  82. &quot;partnerid&quot;: &quot;1268473701&quot;,
  83. &quot;prepayid&quot;: &quot;wx201509101757102b1fd039c50530073556&quot;,
  84. &quot;sign&quot;: &quot;6F2371A7C9917D866485C5E7BA97D1DB&quot;,
  85. &quot;package&quot;: &quot;Sign=WXPay&quot;
  86. },
  87. &quot;msg&quot;: &quot;&quot;,
  88. &quot;code&quot;: 200
  89. }
  90. </code></pre>
  91. <hr>
  92. <script src="md.js"></script>
  93. </body>
  94. </html>