博主
258
258
258
258
专辑

第十六节 微信支付第三方接口

亮子 2022-10-24 06:52:06 6510 0 0 0

微信支付:

1、获取订单号

# 获取订单号:GET方法
https://www.shenmazong.com/weixin/getOrderNo
  • 返回值:
{
	"success": true,
	"code": 0,
	"message": "操作成功",
	"data": "202210071138050001"
}

2、下单接口

# 下单接口:POST方法
https://www.shenmazong.com/weixin/postOrderObj
  • 请求参数
{
    "outTradeNo" : "202210062223100001",
    "description" : "产品描述",
    "amount" : 1,
    "attach" : "附加数据"
}
  • 返回值
{
	"success": true,
	"code": 0,
	"message": "操作成功",
	"data": {
		"codeUrl": "weixin://wxpay/bizpayurl?pr=welMWQtzz"
	}
}

3、订单查询

# 订单查询:GET方法
https://www.shenmazong.com/weixin/getOrderInfo?orderNo=202210062223100001
  • 返回值
{
	"success": true,
	"code": 0,
	"message": "操作成功",
	"data": {
		"orderId": "1578229054623961088",
		"orderNo": "202210071138050001",
		"userId": "0",
		"userName": "",
		"orderAmount": "1",
		"orderStatus": 1,
		"description": "产品描述",
		"attach": "附加数据",
		"delFlag": 0,
		"updateTime": "2022-10-07 03:41:43",
		"createTime": "2022-10-07 03:41:43"
	}
}