123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <style type="text/css">
- <!--
- @import url(md.css);
- -->
- </style>
-
-
- </head>
- <body>
- <h2>4补缴订单支付</h2>
- <p>补差额订单提交社保服务器端生成支付需要的相关数据。</p>
- <h2>请求</h2>
- <blockquote>
- <p><strong>URI</strong></p>
- </blockquote>
- <pre><code>// /sbl/added/pay/v1 POST
- /sbl/added/pay/v2 POST // 支付宝支付签名放在服务器端。 2018-11-07
- </code></pre>
- <blockquote>
- <p><strong>参数</strong></p>
- </blockquote>
- <pre><code> String key; 登录标识
- String added_no; 补缴订单号,见列表
- int pay_channel; 支付渠道
- </code></pre>
- <h2>响应</h2>
- <blockquote>
- <p><strong>状态码</strong></p>
- </blockquote>
- <pre><code>600 无效的订单号、数据不能为空、参数异常等
- 601 无效的用户标识
- 10004 需要登录
- </code></pre>
- <blockquote>
- <p><strong>DATA字段说明</strong></p>
- </blockquote>
- <pre><code> String order_no 订单号(32长度内)
- double price 总金额
- String notify_url; 用于第三方支付回调本系统 用于alipay
- </code></pre>
- <blockquote>
- <p><strong>数据范例</strong></p>
- </blockquote>
- <pre><code>// v2 支付宝响应
- {
- "msg": "",
- "data": "partner=\"2088021344618397\"
- &seller_id=\"service@shanp.com\"
- &out_trade_no=\"BJ0000000004201808788726\"
- &subject=\"“我的社保” 支付\"
- &body=\"补差额\"
- &total_fee=\"0.04\"
- &notify_url=\"http://192.168.2.199/pay/ali/app/notify/v1\"
- &service=\"mobile.securitypay.pay\"
- &payment_type=\"1\"
- &_input_charset=\"utf-8\"
- &it_b_pay=\"30m\"
- &sign=\"this is sign str base64\"
- &sign_type=\"RSA2\"",
- "code": 200
- }
- // v1 支付宝支付的响应
- {
- "data": {
- "order_no": "BJ11524372652587",
- "notify_url": "http://pay-site/pay/ali/app/notify/v1",
- "price": 1017.75
- },
- "msg": "",
- "code": 200
- }
- // 微信支付的响应
- {
- "data": {
- "order_no": "BJ11524372652587",
- "wx": {
- "appid": "wxb7ae6e9f32e0bdb2",
- "noncestr": "08xVtTSFCuYsZmhF",
- "timestamp": "1441879029",
- "partnerid": "1268473701",
- "prepayid": "wx201509101757102b1fd039c50530073556",
- "sign": "6F2371A7C9917D866485C5E7BA97D1DB",
- "package": "Sign=WXPay"
- },
- "msg": "",
- "code": 200
- }
- </code></pre>
- <hr>
- <script src="md.js"></script>
- </body>
- </html>
|