Android 支付宝支付、微信支付、银联支付 整合第三方支付接入方法(后台订单支付API设计)
程序员文章站
2024-02-28 12:32:34
客户端获取后台支付api请求参数的设计
参数样例:
{
data: {
method: 1,
platform: 1,
version:"1.0",...
客户端获取后台支付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设计),希望对大家有所帮助