# Wechat - [/wallet.Wechat/JsapiPreOrder](#walletwechatjsapipreorder) - [/wallet.Wechat/AppPreOrder](#walletwechatapppreorder) - [/wallet.Wechat/NativePreOrder](#walletwechatnativepreorder) - [/wallet.Wechat/Transfer](#walletwechattransfer) - [/wallet.Wechat/WxCallback](#walletwechatwxcallback) ## /wallet.Wechat/JsapiPreOrder 微信JSAPI下单 ### Request ```javascript { user_identification: "", // type, 用户唯一标识 amount: "0", // type, 充值金额,单位:分 auth_code: "", // type, 微信授权码 description: "", // type, 商品描述 notify_url: "", // type, 支付回调URL,公网域名须为HTTPS orderNo: "", // type, 订单唯一码 } ``` ### Reply ```javascript { prepay_id: "", // type, 预支付ID,两小时有效 app_id: "", // type, 微信app_id timestamp: "", // type, 时间戳 nonce_str: "", // type, 随机字符串 sign_type: "", // type, 签名方式 sign: "", // type, 签名串 } ``` ## /wallet.Wechat/AppPreOrder 微信APP支付下单 ### Request ```javascript { user_identification: "", // type, 用户唯一标识 amount: "0", // type, 充值金额,单位:分 description: "", // type, 商品描述 notify_url: "", // type, 支付回调URL,公网域名须为HTTPS } ``` ### Reply ```javascript { prepay_id: "", // type, 预支付ID,两小时有效 app_id: "", // type, 微信app_id mch_id: "", // type, 商户号,用以调起支付 } ``` ## /wallet.Wechat/NativePreOrder 微信native二维码支付下单 ### Request ```javascript { user_identification: "", // type, 用户唯一标识 amount: "0", // type, 充值金额,单位:分 description: "", // type, 商品描述 notify_url: "", // type, 支付回调URL,公网域名须为HTTPS } ``` ### Reply ```javascript { code_url: "", // type, 二维码URL } ``` ## /wallet.Wechat/Transfer 微信转账到零钱 ### Request ```javascript { user_identification: "", // type, 用户唯一标识 amount: "0", // type, 提现金额,单位:分 fee: "0", // type, 提现手续费,单位:分 description: "", // type, 商品描述 transfer_name: "", // type, 提现人真实姓名 } ``` ### Reply ```javascript {} ``` ## /wallet.Wechat/WxCallback 微信支付回调 ### Request ```javascript { id: "", // type create_time: "", // type resource_type: "", // type event_type: "", // type summary: "", // type resource: { original_type: "", // type algorithm: "", // type ciphertext: "", // type associated_data: "", // type nonce: "", // type }, // type SignInfo: { transaction_id: "", // type act_code: "", // type hall_code: "", // type hall_belong_mch_id: "0", // type card_id: "", // type code: "", // type activity_id: "", // type }, // type } ``` ### Reply ```javascript { code: "", // type, 错误码,SUCCESS为清算机构接收成功,FAIL错误码为失败。 message: "", // type, 返回信息 } ```