# 微信PC端NATIVE支付封装
from fastapi import Request
request = Request
def order(appid,mchid,description,notify_url,out_trade_no,amount):
url = "https://api.mch.weixin.qq.com/v3/pay/transactions/native"
sendData = {
"appid": appid,
"mchid": mchid,
"description": description,
"notify_url": notify_url,
"out_trade_no": out_trade_no,
"amount": amount,
}
req = request(
url,
method="POST",
body=sendData,
)
我希望能收到老师的反馈