C# Class CRL.Business.OnlinePay.ChargeService

提供充值方法
Mostrar archivo Open project: hubro-xx/CRL2

Public Methods

Method Description
BatchTransfers ( List payDetail, string batch_no ) : void

提交支付转帐

CheckOrder ( IPayHistory order, string &message ) : bool

查询订单 如果订单未确认,会自动确认

CreateOrder ( decimal amount, string user, CompanyType companyType ) : IPayHistory

生成订单

GetNotify ( CompanyType companyType, HttpContext context ) : string

接口回调

Redirect ( IPayHistory order ) : void

接口转向页执行此方法

RefundOrder ( IPayHistory order, string &message ) : bool

订单取消,退款 只要提交成功就一定能成功,特殊情况除外

Submit ( IPayHistory order ) : void

提交支付

Submit ( string user, decimal amount, string bankType, OrderType orderType, CompanyType companyType, string byProductOrder, string redirectUrl ) : void

通过参数直接提交 会产生跳转

Private Methods

Method Description
GetCompany ( CompanyType companyType ) : Company.CompanyBase

Method Details

BatchTransfers() public static method

提交支付转帐
public static BatchTransfers ( List payDetail, string batch_no ) : void
payDetail List
batch_no string
return void

CheckOrder() public static method

查询订单 如果订单未确认,会自动确认
public static CheckOrder ( IPayHistory order, string &message ) : bool
order IPayHistory
message string
return bool

CreateOrder() public static method

生成订单
public static CreateOrder ( decimal amount, string user, CompanyType companyType ) : IPayHistory
amount decimal
user string
companyType CompanyType
return IPayHistory

GetNotify() public static method

接口回调
public static GetNotify ( CompanyType companyType, HttpContext context ) : string
companyType CompanyType
context System.Web.HttpContext
return string

Redirect() public static method

接口转向页执行此方法
public static Redirect ( IPayHistory order ) : void
order IPayHistory
return void

RefundOrder() public static method

订单取消,退款 只要提交成功就一定能成功,特殊情况除外
public static RefundOrder ( IPayHistory order, string &message ) : bool
order IPayHistory
message string
return bool

Submit() public static method

提交支付
public static Submit ( IPayHistory order ) : void
order IPayHistory
return void

Submit() public static method

通过参数直接提交 会产生跳转
public static Submit ( string user, decimal amount, string bankType, OrderType orderType, CompanyType companyType, string byProductOrder, string redirectUrl ) : void
user string
amount decimal
bankType string
orderType OrderType
companyType CompanyType
byProductOrder string
redirectUrl string
return void