C# Class ICanPay.Providers.TenpayGateway

财付通网关
Inheritance: GatewayBase, IPaymentUrl, IPaymentForm, IQueryNow
Afficher le fichier Open project: hiihellox10/ICanPay

Méthodes publiques

Méthode Description
BuildPaymentForm ( ) : string
BuildPaymentUrl ( ) : string

支付订单数据的Url

QueryNow ( ) : bool
TenpayGateway ( ) : System

初始化财付通网关

TenpayGateway ( List gatewayParameterData ) : System

初始化财付通网关

WriteSucceedFlag ( ) : void

Méthodes protégées

Méthode Description
CheckNotifyData ( ) : bool

验证订单是否支付成功

这里处理查询订单的网关通知跟支付订单的网关通知

Private Methods

Méthode Description
BackupAndClearGatewayParameter ( ) : List

备份并清除网关的参数

GetOrderSign ( ) : string
GetPaymentQueryString ( ) : string
GetQueryOrderQueryString ( ) : string

获得查询订单的查询字符串

GetQueryOrderUrl ( ) : string

获得查询订单的Url

GetValidateNotifyQueryString ( ) : string

获得验证通知的查询字符串

GetValidateNotifyUrl ( ) : string

获得验证通知的URL

InitOrderParameter ( ) : void

初始化订单参数

ReadNotifyOrderParameter ( ) : void

读取通知中的订单金额、订单编号

ReadResultXml ( string xml ) : void

读取结果的XML

RestoreGatewayParameter ( List gatewayParameterData ) : void

还原网关的参数

ValidateNotifyId ( ) : bool

验证通知Id

ValidateNotifyParameter ( ) : bool

检查通知签名是否正确、货币类型是否为RMB、是否支付成功。

ValidateOrder ( ) : bool

验证订单金额、订单号是否与之前的通知的金额、订单号相符

Method Details

BuildPaymentForm() public méthode

public BuildPaymentForm ( ) : string
Résultat string

BuildPaymentUrl() public méthode

支付订单数据的Url
public BuildPaymentUrl ( ) : string
Résultat string

CheckNotifyData() protected méthode

验证订单是否支付成功
这里处理查询订单的网关通知跟支付订单的网关通知
protected CheckNotifyData ( ) : bool
Résultat bool

QueryNow() public méthode

public QueryNow ( ) : bool
Résultat bool

TenpayGateway() public méthode

初始化财付通网关
public TenpayGateway ( ) : System
Résultat System

TenpayGateway() public méthode

初始化财付通网关
public TenpayGateway ( List gatewayParameterData ) : System
gatewayParameterData List 网关通知的数据集合
Résultat System

WriteSucceedFlag() public méthode

public WriteSucceedFlag ( ) : void
Résultat void