C# Класс CRL.Business.OnlinePay.ChargeService

提供充值方法
Показать файл Открыть проект

Открытые методы

Метод Описание
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

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

Приватные методы

Метод Описание
GetCompany ( CompanyType companyType ) : Company.CompanyBase

Описание методов

BatchTransfers() публичный статический Метод

提交支付转帐
public static BatchTransfers ( List payDetail, string batch_no ) : void
payDetail List
batch_no string
Результат void

CheckOrder() публичный статический Метод

查询订单 如果订单未确认,会自动确认
public static CheckOrder ( IPayHistory order, string &message ) : bool
order IPayHistory
message string
Результат bool

CreateOrder() публичный статический Метод

生成订单
public static CreateOrder ( decimal amount, string user, CompanyType companyType ) : IPayHistory
amount decimal
user string
companyType CompanyType
Результат IPayHistory

GetNotify() публичный статический Метод

接口回调
public static GetNotify ( CompanyType companyType, HttpContext context ) : string
companyType CompanyType
context System.Web.HttpContext
Результат string

Redirect() публичный статический Метод

接口转向页执行此方法
public static Redirect ( IPayHistory order ) : void
order IPayHistory
Результат void

RefundOrder() публичный статический Метод

订单取消,退款 只要提交成功就一定能成功,特殊情况除外
public static RefundOrder ( IPayHistory order, string &message ) : bool
order IPayHistory
message string
Результат bool

Submit() публичный статический Метод

提交支付
public static Submit ( IPayHistory order ) : void
order IPayHistory
Результат void

Submit() публичный статический Метод

通过参数直接提交 会产生跳转
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
Результат void