ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 支付接口 /** * 支付接口(支付宝 微信) * @http post * @param order_type(订单类型,例如:goods_buy(商城购买订单)predeposit(预存款充值)等等 后台设定) * @param payment_code 后台配置(支付类型 例如:微信:wxpayweb(微信web支付) wxpayapp(微信APP支付) alipay(支付宝支付,包含web和app)) * @web https://pay.weixin.qq.com/wiki/doc/api/index.html 微信文档 * @web https://doc.open.alipay.com/doc2/apiList?docType=4 支付宝文档 *@return 调起支付的相应数据,得到数据即可调起支付,详情参考微信和支付宝接口 * @author 孙泉 */ +++ post:/Payment/topay <<< 支付宝app支付success { "errcode": 0, "errmsg": "操作成功", "data": { "ios": "app_id=2015122501042391&biz_content=%7B%22timeout_express%22%3A%2260m%22%2C%22seller_id%22%3A%22%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22total_amount%22%3A%220.01%22%2C%22subject%22%3A%22%E5%95%86%E5%93%81%E8%B4%AD%E4%B9%B0_410550575685503546%22%2C%22body%22%3A%22410550575685503546%22%2C%22out_trade_no%22%3A%22410550575685503546%22%2C%22extra_common_param%22%3A%22goods_buy%22%7D&charset=utf-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2Fwww.caoxiansheng.com%2Fapi%2Fpayment%2Fpaynotify%2Fpayment_code%2Falipay.html&sign_type=RSA×tamp=2017-06-12%2009%3A41%3A50&version=1.0&sign=ue1QdqraGHcP6qViU3HNT4XpmrNHpB7zx1YDbL69%2BlggtA1Oconl8y27vrxv13NKLJcWKBLCJFi3N%2BVC7n9k31ujWD3pe%2Bp7ZywrbOpmM6NTzN5lMcYhnbuqQ8bAh4OeSxrmsqarrFebcKxhe0p39SNb01SeSMqMJxH%2FWUn5AEE%3D", "android": "app_id=2015122501042391&biz_content=%7B%22timeout_express%22%3A%2260m%22%2C%22seller_id%22%3A%22%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22total_amount%22%3A%220.01%22%2C%22subject%22%3A%22%E5%95%86%E5%93%81%E8%B4%AD%E4%B9%B0_410550575685503546%22%2C%22body%22%3A%22410550575685503546%22%2C%22out_trade_no%22%3A%22410550575685503546%22%2C%22extra_common_param%22%3A%22goods_buy%22%7D&charset=utf-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2Fwww.caoxiansheng.com%2Fapi%2Fpayment%2Fpaynotify%2Fpayment_code%2Falipay.html&sign_type=RSA×tamp=2017-06-12%2009%3A41%3A50&version=1.0&sign=ue1QdqraGHcP6qViU3HNT4XpmrNHpB7zx1YDbL69%2BlggtA1Oconl8y27vrxv13NKLJcWKBLCJFi3N%2BVC7n9k31ujWD3pe%2Bp7ZywrbOpmM6NTzN5lMcYhnbuqQ8bAh4OeSxrmsqarrFebcKxhe0p39SNb01SeSMqMJxH%2FWUn5AEE%3D" } } 参考上方文档 <<< 微信web支付返回的数据success 这里填写错误的返回码 以此类推,每个状态使用 <<< 分割, 第一行添加状态名称 +++