企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~[api] post:/api/tiktok/order *string:appId#品牌ID *string:requestTime#发送请求时间,如:20190226153808 *sign#签名 *storeId#店铺id *outOrderId#业务平台订单id *outOrderTime#业务订单生成时间20190226153808 *outOrderAmount#业务订单金额 (int 单位为分) *totalFee#支付金额 (int 单位为分) *timeExpire#业务订单支付过期时间20091225091010 *callbackUrl#回调地址 *prepareUrl#服务端为收银台支付下单提供信息验证并加密的接口 *orderList#子订单信息集合订单集合【orderList集合含子订单号、子订单金额、店铺id、店铺名称 ,子订单金额outOrderAmout以分为单位(例如: [{"outOrderNo":"sw20190417001013222","outOrderAmount":6000,"storeId":"4450","storeName":"商户名称2"},{"outOrderNo":"sw20190417001013332","outOrderAmount":4000,"storeId":"4450","storeName":"商户名称2"}])】 *body#商品BODY *mchCreateIp#订单生成的机器IP *uid#用户在商户侧唯一标志,长度:32 位以内(抖音支付需要) *scene_info#场景信息(微信H5支付需要) <<< success data内容为拉起抖音收银台orderInfo字段 { "status": "0000", "codemsg": "下单成功", "data": { "merchant_id": "1900011920", "app_id": "800119208666", "sign_type": "MD5", "timestamp": 1590198232, "version": "2.0", "trade_type": "H5", "product_code": "pay", "payment_type": "direct", "out_order_no": "1070200523094352017768", "uid": "8594115661", "total_amount": 100, "currency": "CNY", "subject": "测试商品", "body": "测试商品", "trade_time": 1590198232, "valid_time": "1200", "notify_url": "https:\/\/testpaycenter.9617777.com\/", "wx_url": "https:\/\/wx.tenpay.com\/cgi-bin\/mmpayweb-bin\/checkmweb?prepay_id=wx23094352777323f05425a1b11825579900&package=2337384654", "wx_type": "MWEB", "alipay_url": "app_id=2016011601097827&biz_content=%7B%22timeout_express%22%3A%22336648982532m%22%2C%22total_amount%22%3A%22100%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22body%22%3A%22%E6%B5%8B%E8%AF%95%E5%95%86%E5%93%81%22%2C%22subject%22%3A%22%E6%B5%8B%E8%AF%95%E5%95%86%E5%93%81%22%2C%22out_trade_no%22%3A%221070200523094352017768%22%2C%22time_expire%22%3A%22642099-04-15+01%3A16%22%2C%22disable_pay_channels%22%3A%22creditCard%2Cpcredit%2CpcreditpayInstallment%22%7D&charset=utf-8&format=JSON&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2F118.190.148.67&sign_type=RSA×tamp=2020-05-23+09%3A43%3A52&version=1.0&sign=F48sfm9Ma7PuG9Ek0A8YzQCqoB7OEweXJVx1uOSdEM5vnJNioF2JnRM7vH0Lr7Iixhi1mZbVP%2BBInSApqmpTjjYvR%2B%2FK1LALDaeHsnbgc03ZaAL31Ha38jDECPXMaYSKTLZMCQgPwIdWXWlhI2ksrzN%2B3dY8mnLasN%2BGU0pFlswd1gpnNgw2v2maKc2Z2c0fLJVN7lcTb9WoBJ3vviURo70%2FBL%2F%2Bk5GdHZqR%2B5%2FhfcREeW9MprYj5Z7UwvlbjNoyVaCxGg%2BaYkqNmGZdZ6o4hzTf57MRyGi3UXjqa4JPgTD6d1RlqEPISl7yI8Yn8aWW3XKw%2FBWsUnKCMlWrQrtBRw%3D%3D", "sign": "7c59b80c8961c18131ef9094ad9c8b52", "risk_info": "{\"ip\":\"1.192.167.29\"}" } } <<< error {"status":errorcode,"codemsg":error msg} ~~~ >备注:不用3des加密,直接传递json ~~~ scene_info 该字段用于上报支付的场景信息,针对H5支付有以下三种场景,请根据对应场景上报,H5支付不建议在APP端使用,针对场景1,2请接入APP支付,不然可能会出现兼容性问题 1,IOS移动应用 {"h5_info": //h5支付固定传"h5_info" {"type": "", //场景类型 "app_name": "", //应用名 "bundle_id": "" //bundle_id } } 2,安卓移动应用 {"h5_info": //h5支付固定传"h5_info" {"type": "", //场景类型 "app_name": "", //应用名 "package_name": "" //包名 } } 3,WAP网站应用 {"h5_info": //h5支付固定传"h5_info" {"type": "", //场景类型 "wap_url": "",//WAP网站URL地址 "wap_name": "" //WAP 网站名 } } 参考: //IOS移动应用 {"h5_info": {"type":"IOS","app_name": "王者荣耀","bundle_id": "com.tencent.wzryIOS"}} //安卓移动应用 {"h5_info": {"type":"Android","app_name": "王者荣耀","package_name": "com.tencent.tmgp.sgame"}} //WAP网站应用 {"h5_info": {"type":"Wap","wap_url": "https://pay.qq.com","wap_name": "腾讯充值"}} ~~~ sign生成规则详见[安全规范](https://www.kancloud.cn/zzkpay/jyzzpay/1029442)