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