C# Class Senparc.Weixin.MP.TenPayLibV3.TenPayV3

微信支付接口,官方API:https://mp.weixin.qq.com/paymch/readtemplate?t=mp/business/course2_tmpl&lang=zh_CN&token=25857919#4
Show file Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
CloseOrder ( TenPayV3CloseOrderRequestData dataInfo ) : CloseOrderResult

关闭订单接口

CloseOrderAsync ( TenPayV3CloseOrderRequestData dataInfo ) : Task

【异步方法】关闭订单接口

DownloadBill ( string data ) : string

对账单接口

DownloadBillAsync ( string data ) : Task

【异步方法】对账单接口

GetJsPaySign ( string appId, string timeStamp, string nonceStr, string package, string key, string signType = "MD5" ) : string

获取UI使用的JS支付签名

GetTransferInfo ( string data, int timeOut = Config.TIME_OUT ) : string

用于商户的企业付款操作进行结果查询,返回付款操作详细结果。

GetTransferInfoAsync ( string data, int timeOut = Config.TIME_OUT ) : Task

【异步方法】用于商户的企业付款操作进行结果查询,返回付款操作详细结果。

MicroPay ( TenPayV3MicroPayRequestData dataInfo ) : MicropayResult

刷卡支付 提交被扫支付

MicroPayAsync ( TenPayV3MicroPayRequestData dataInfo ) : Task

【异步方法】刷卡支付 提交被扫支付

NativePay ( string appId, string timesTamp, string mchId, string nonceStr, string productId, string sign ) : string

Native

OrderQuery ( TenPayV3OrderQueryRequestData dataInfo ) : OrderQueryResult

订单查询接口

OrderQueryAsync ( TenPayV3OrderQueryRequestData dataInfo ) : Task

【异步方法】订单查询接口

RefundQuery ( TenPayV3RefundQueryRequestData dataInfo ) : RefundQueryResult

退款查询接口

RefundQueryAsync ( TenPayV3RefundQueryRequestData dataInfo ) : Task

【异步方法】退款查询接口

Reverse ( TenPayV3ReverseRequestData dataInfo ) : ReverseResult

撤销订单接口

ReverseAsync ( TenPayV3ReverseRequestData dataInfo ) : Task

【异步方法】撤销订单接口

ShortUrl ( TenPayV3ShortUrlRequestData dataInfo ) : ShortUrlResult

短链接转换接口

ShortUrlAsync ( TenPayV3ShortUrlRequestData dataInfo ) : Task

【异步方法】短链接转换接口

Transfers ( string data, int timeOut = Config.TIME_OUT ) : string

用于企业向微信用户个人付款 目前支持向指定微信用户的openid付款

TransfersAsync ( string data, int timeOut = Config.TIME_OUT ) : Task

【异步方法】 用于企业向微信用户个人付款 目前支持向指定微信用户的openid付款

Unifiedorder ( TenPayV3UnifiedorderRequestData dataInfo, int timeOut = Config.TIME_OUT ) : Senparc.Weixin.MP.TenPayLibV3.UnifiedorderResult

统一支付接口 统一支付接口,可接受JSAPI/NATIVE/APP 下预支付订单,返回预支付订单号。NATIVE 支付返回二维码code_url。

UnifiedorderAsync ( TenPayV3UnifiedorderRequestData dataInfo, int timeOut = Config.TIME_OUT ) : Task

【异步方法】统一支付接口 统一支付接口,可接受JSAPI/NATIVE/APP 下预支付订单,返回预支付订单号。NATIVE 支付返回二维码code_url。

Private Methods

Method Description
CloseOrder ( string data ) : string
CloseOrderAsync ( string data ) : Task
MicroPay ( string data ) : string
MicroPayAsync ( string data ) : Task
OrderQuery ( string data ) : string
OrderQueryAsync ( string data ) : Task
RefundQuery ( string data ) : string
RefundQueryAsync ( string data ) : Task
Reverse ( string data ) : string
ReverseAsync ( string data ) : Task
ShortUrl ( string data ) : string
ShortUrlAsync ( string data ) : Task
Unifiedorder ( string data, int timeOut = Config.TIME_OUT ) : string
UnifiedorderAsync ( string data, int timeOut = Config.TIME_OUT ) : Task

Method Details

CloseOrder() public static method

关闭订单接口
public static CloseOrder ( TenPayV3CloseOrderRequestData dataInfo ) : CloseOrderResult
dataInfo TenPayV3CloseOrderRequestData 关闭订单需要post的xml数据
return CloseOrderResult

CloseOrderAsync() public static method

【异步方法】关闭订单接口
public static CloseOrderAsync ( TenPayV3CloseOrderRequestData dataInfo ) : Task
dataInfo TenPayV3CloseOrderRequestData 关闭订单需要post的xml数据
return Task

DownloadBill() public static method

对账单接口
public static DownloadBill ( string data ) : string
data string
return string

DownloadBillAsync() public static method

【异步方法】对账单接口
public static DownloadBillAsync ( string data ) : Task
data string
return Task

GetJsPaySign() public static method

获取UI使用的JS支付签名
public static GetJsPaySign ( string appId, string timeStamp, string nonceStr, string package, string key, string signType = "MD5" ) : string
appId string
timeStamp string
nonceStr string
package string 格式:prepay_id={0}
key string
signType string
return string

GetTransferInfo() public static method

用于商户的企业付款操作进行结果查询,返回付款操作详细结果。
public static GetTransferInfo ( string data, int timeOut = Config.TIME_OUT ) : string
data string
timeOut int
return string

GetTransferInfoAsync() public static method

【异步方法】用于商户的企业付款操作进行结果查询,返回付款操作详细结果。
public static GetTransferInfoAsync ( string data, int timeOut = Config.TIME_OUT ) : Task
data string
timeOut int
return Task

MicroPay() public static method

刷卡支付 提交被扫支付
public static MicroPay ( TenPayV3MicroPayRequestData dataInfo ) : MicropayResult
dataInfo TenPayV3MicroPayRequestData
return MicropayResult

MicroPayAsync() public static method

【异步方法】刷卡支付 提交被扫支付
public static MicroPayAsync ( TenPayV3MicroPayRequestData dataInfo ) : Task
dataInfo TenPayV3MicroPayRequestData
return Task

NativePay() public static method

Native
public static NativePay ( string appId, string timesTamp, string mchId, string nonceStr, string productId, string sign ) : string
appId string 开放平台账户的唯一标识
timesTamp string 时间戳
mchId string 商户Id
nonceStr string 32 位内的随机串,防重发
productId string 商品唯一id
sign string 签名
return string

OrderQuery() public static method

订单查询接口
public static OrderQuery ( TenPayV3OrderQueryRequestData dataInfo ) : OrderQueryResult
dataInfo TenPayV3OrderQueryRequestData
return OrderQueryResult

OrderQueryAsync() public static method

【异步方法】订单查询接口
public static OrderQueryAsync ( TenPayV3OrderQueryRequestData dataInfo ) : Task
dataInfo TenPayV3OrderQueryRequestData
return Task

RefundQuery() public static method

退款查询接口
public static RefundQuery ( TenPayV3RefundQueryRequestData dataInfo ) : RefundQueryResult
dataInfo TenPayV3RefundQueryRequestData
return RefundQueryResult

RefundQueryAsync() public static method

【异步方法】退款查询接口
public static RefundQueryAsync ( TenPayV3RefundQueryRequestData dataInfo ) : Task
dataInfo TenPayV3RefundQueryRequestData
return Task

Reverse() public static method

撤销订单接口
public static Reverse ( TenPayV3ReverseRequestData dataInfo ) : ReverseResult
dataInfo TenPayV3ReverseRequestData
return ReverseResult

ReverseAsync() public static method

【异步方法】撤销订单接口
public static ReverseAsync ( TenPayV3ReverseRequestData dataInfo ) : Task
dataInfo TenPayV3ReverseRequestData
return Task

ShortUrl() public static method

短链接转换接口
public static ShortUrl ( TenPayV3ShortUrlRequestData dataInfo ) : ShortUrlResult
dataInfo TenPayV3ShortUrlRequestData
return ShortUrlResult

ShortUrlAsync() public static method

【异步方法】短链接转换接口
public static ShortUrlAsync ( TenPayV3ShortUrlRequestData dataInfo ) : Task
dataInfo TenPayV3ShortUrlRequestData
return Task

Transfers() public static method

用于企业向微信用户个人付款 目前支持向指定微信用户的openid付款
public static Transfers ( string data, int timeOut = Config.TIME_OUT ) : string
data string 微信支付需要post的xml数据
timeOut int
return string

TransfersAsync() public static method

【异步方法】 用于企业向微信用户个人付款 目前支持向指定微信用户的openid付款
public static TransfersAsync ( string data, int timeOut = Config.TIME_OUT ) : Task
data string 微信支付需要post的xml数据
timeOut int
return Task

Unifiedorder() public static method

统一支付接口 统一支付接口,可接受JSAPI/NATIVE/APP 下预支付订单,返回预支付订单号。NATIVE 支付返回二维码code_url。
public static Unifiedorder ( TenPayV3UnifiedorderRequestData dataInfo, int timeOut = Config.TIME_OUT ) : Senparc.Weixin.MP.TenPayLibV3.UnifiedorderResult
dataInfo TenPayV3UnifiedorderRequestData 微信支付需要post的Data数据
timeOut int
return Senparc.Weixin.MP.TenPayLibV3.UnifiedorderResult

UnifiedorderAsync() public static method

【异步方法】统一支付接口 统一支付接口,可接受JSAPI/NATIVE/APP 下预支付订单,返回预支付订单号。NATIVE 支付返回二维码code_url。
public static UnifiedorderAsync ( TenPayV3UnifiedorderRequestData dataInfo, int timeOut = Config.TIME_OUT ) : Task
dataInfo TenPayV3UnifiedorderRequestData 微信支付需要post的xml数据
timeOut int
return Task