C# Class ICanPay.NotifyProcess

网关通知的处理类,通过对返回数据的分析识别网关类型
Show file Open project: hiihellox10/ICanPay Class Usage Examples

Public Methods

Method Description
ExistParameter ( string parmaName, List gatewayParameterData ) : bool

网关参数数据项中是否存在指定的所有参数名

GetGateway ( ) : GatewayBase

验证网关的类型

ReadNotifyData ( ) : List

读取网关发回的数据。Get方式传入QueryString的值均为未解码

Private Methods

Method Description
IsAlipayGateway ( List gatewayParameterData ) : bool

是否是支付宝网关

IsTenpayGateway ( List gatewayParameterData ) : bool

是否是财付通网关

IsWeixinpayGateway ( List gatewayParameterData ) : bool

是否是微信支付网关

IsWeixinpayNotify ( ) : bool

是否是微信支付的通知

IsYeepayGateway ( List gatewayParameterData ) : bool

验证是否是易宝网关

ReadForm ( List gatewayParameterList ) : void

读取POST提交的Form表单的数据

ReadQueryString ( List gatewayParameterList ) : void

读取GET提交的查询字符串中的数据

ReadWeixinpayXml ( List gatewayParameterList ) : void

读取微信支付的通知

SetGatewayParameterValue ( List gatewayParameterList, string gatewayParameterName, string gatewayParameterValue, GatewayParameterRequestMethod gatewayParameterRequestMethod ) : void

设置网关的数据

Method Details

ExistParameter() public static method

网关参数数据项中是否存在指定的所有参数名
public static ExistParameter ( string parmaName, List gatewayParameterData ) : bool
parmaName string 参数名数组
gatewayParameterData List 数据项
return bool

GetGateway() public static method

验证网关的类型
public static GetGateway ( ) : GatewayBase
return GatewayBase

ReadNotifyData() public static method

读取网关发回的数据。Get方式传入QueryString的值均为未解码
public static ReadNotifyData ( ) : List
return List