客户端获取后台支付API请求参数的设计
参数样例:
{ data: { method: 1, platform: 1, version:"1.0", relate_orders:"B201602031023,B2016020310231", order_no: "BZY201604200952100", order_type: 1, total_fee: 1, description: "商品购买", client_ip:'192.168.1.1', limit_pay:1 }, sign: "91C1E03D0434762E45D0998F4088F438" }
返回参数样例:
{ "d": { "method": 97, "platform": 1, "appid": 88888888, "subappid": 0, "orderno": "B201604200952100", "tradeno": "P016008888888804202100000015", "sign": "82b0641ff2e8eefab5ecae4888917027", "result_code": 1000, "msg": "成功", "data": {…} } }
返回参数说明:
微信参数样例
{ "d": { …, "data": { "appid": "wxf843f414c66a8219", "noncestr": "636ffe57999b4022a90673119ed8966e", "package": "Sign=WXPay", "partnerid": "1234500402", "prepayid": "wx201604221610092aa8320bcc0065663153", "sign": "5F27486EF777B4DF293F78039D93D66A", "timestamp": 1461312609 } } }
支付宝参数样例
{ "d": { …, "data": { "content": "partner="208812135961156220"&seller_id="test@qq.com"&out_trade_no="BZY20234620"&subject="购买商品"&body="购买商品"&total_fee="0.01"¬ify_url="http://devpay.baidu.cn/api/payment/alipay/app_backurl.aspx"&service="mobile.baidu.pay"&payment_type="1"&_input_charset="UTF-8"&it_b_pay="1d"&sign="gdnBGceEiqxkwz8JV1N%2fA6sLhqvhZmGPnobos8QZQ714bnk%2bS8HkxbLRFaAkied1051YZGwjORDSHjn5ZpCDumnnDdFF9YsUC1YP2CRVkaqx4ZH7phsV1CNRQ6GKmLyruAmDMFcRmqg2RPIQuS1th0UJZ6l04lF7KBSwilP6tGQ%3d"&sign_type="RSA"" } } }
银联参数样例
{ "d": { …, "data": { "tn": " 201604210955161255388" } } }
以上所述是小编给大家介绍的Android 支付宝支付、微信支付、银联支付 整合第三方支付接入方法(后台订单支付API设计),希望对大家有所帮助,如果大家有任何疑问请给我们留言,小编会及时回复大家的。在此也非常感谢大家对查字典教程网的支持!