wechat_create_jsapi_order
Create a WeChat Pay V3 JSAPI order for WeChat or mini-program payments, returning prepay_id and the parameters needed to invoke wx.invoke('getBrandWCPayRequest') for payment.
Instructions
微信支付V3 JSAPI 下单(微信内/小程序):返回 prepay_id 与 wx.invoke("getBrandWCPayRequest") 调起参数。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order": "<order>",
"openid": "<openid>",
"notifyUrl": "<notifyUrl>"
},
"name": "wechat_create_jsapi_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cred | No | 凭证(可省略,改用环境变量;PEM 字段可直接传 PEM 全文或 .pem 文件路径) | |
| order | Yes | ||
| openid | Yes | ||
| execute | No | ||
| notifyUrl | Yes |