文档
测试
POST
api/wx_pay/

请求参数

参数名
类型
描述
必填
total_fee
int
支付金额(单位:分)必传
必填
body
string
说明,非必传,(不得使用中文字符串)
必填
openid
string
必传,openid
必填
out_trade_no
string
订单id,必传
必填

说明 / 示例

{ "status": 200, "msg": "success", "item": { "code_url": null, "data_dict": { "return_code": "SUCCESS", "return_msg": "OK", "result_code": "SUCCESS", "mch_id": "1609602653", "appid": "wx021160af9b9ac4e2", "nonce_str": "pHpqPU3Hjz00l2uL", "sign": "FBB22EE34ADDEB65DEC53E8F0B885F72", "prepay_id": "wx16144233288389e4a0c61da773aff80000", "trade_type": "JSAPI" }, "out_trade_no": "20210616144232823440", "body": "shangpingmiaoshi", "total_fee": "1" }, "total_items": 5, "except": null }