C# Класс Payments.SecurePay.SecurePayGateway

Наследование: ISecurePayGateway
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ValidSuccessResponseCode List

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

Метод Описание
ChargeExistingCustomer ( string clientId, SecurePayPayment payment ) : SecurePayMessage
CreateClientId ( ) : string
CreateCustomerWithCharge ( string clientId, SecurePayCardInfo card, SecurePayPayment payment ) : SecurePayMessage
CreateMessageId ( ) : string
CreateReadyToTriggerPaymentXml ( SecurePayCardInfo card, string customerId, SecurePayPayment payment ) : string
CreateScheduledPaymentXml ( SecurePayCardInfo card, string customerId, SecurePayPayment payment, System.DateTime startDate ) : string

TODO: replace this with creation of a SecurePayMessage object

GetTimeStamp ( System.DateTime timeStamp ) : string
SecurePayGateway ( ICommunicate endpoint, string merchantId, string merchantPassword, string apiUri ) : System
SendMessage ( string requestMessage, string callingMethod ) : SecurePayMessage
Sha1SecurePayDetails ( string merchantId, string transxPassword, string transxType, string primaryRef, int amount, System.DateTime timestamp ) : string
Sha1SecurePayDetailsHexString ( string input ) : string
Sha1SecurePayDetailsHexString ( string merchantId, string transxPassword, string transxType, string primaryRef, string amount, string fpTimestamp ) : string
SingleCharge ( SecurePayCardInfo card, SecurePayPayment payment, string referenceId ) : SecurePayMessage
SinglePaymentXml ( SecurePayCardInfo card, SecurePayPayment payment, string purchaseOrderNo ) : string

TODO: replace this with creation of a SecurePayMessage object

TriggerPeriodicPaymentXml ( string customerId, SecurePayPayment payment ) : string

TODO: replace this with creation of a SecurePayMessage object

TriggerPeriodicPaymentXmlWithMessageId ( string messageId, string customerId, SecurePayPayment payment ) : string

TODO: replace this with creation of a SecurePayMessage object

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

Метод Описание
Defend ( bool condition, string method, SecurePayMessage response ) : void
Defend ( bool condition, string method, int statusCode, string statusDescription ) : void
IsAnApprovedSuccessResponseCode ( int codeToCheck ) : bool
RemoveNonAlphaNumeric ( string str ) : string
ValidatePayment ( SecurePayPayment payment ) : void
ValidateReponse ( SecurePayMessage response, string callingMethod ) : void

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

ChargeExistingCustomer() публичный Метод

public ChargeExistingCustomer ( string clientId, SecurePayPayment payment ) : SecurePayMessage
clientId string
payment SecurePayPayment
Результат SecurePayMessage

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

public static CreateClientId ( ) : string
Результат string

CreateCustomerWithCharge() публичный Метод

public CreateCustomerWithCharge ( string clientId, SecurePayCardInfo card, SecurePayPayment payment ) : SecurePayMessage
clientId string
card SecurePayCardInfo
payment SecurePayPayment
Результат SecurePayMessage

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

public static CreateMessageId ( ) : string
Результат string

CreateReadyToTriggerPaymentXml() публичный Метод

public CreateReadyToTriggerPaymentXml ( SecurePayCardInfo card, string customerId, SecurePayPayment payment ) : string
card SecurePayCardInfo
customerId string
payment SecurePayPayment
Результат string

CreateScheduledPaymentXml() публичный Метод

TODO: replace this with creation of a SecurePayMessage object
public CreateScheduledPaymentXml ( SecurePayCardInfo card, string customerId, SecurePayPayment payment, System.DateTime startDate ) : string
card SecurePayCardInfo
customerId string
payment SecurePayPayment
startDate System.DateTime
Результат string

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

public static GetTimeStamp ( System.DateTime timeStamp ) : string
timeStamp System.DateTime
Результат string

SecurePayGateway() публичный Метод

public SecurePayGateway ( ICommunicate endpoint, string merchantId, string merchantPassword, string apiUri ) : System
endpoint ICommunicate
merchantId string
merchantPassword string
apiUri string
Результат System

SendMessage() публичный Метод

public SendMessage ( string requestMessage, string callingMethod ) : SecurePayMessage
requestMessage string
callingMethod string
Результат SecurePayMessage

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

public static Sha1SecurePayDetails ( string merchantId, string transxPassword, string transxType, string primaryRef, int amount, System.DateTime timestamp ) : string
merchantId string
transxPassword string
transxType string
primaryRef string
amount int
timestamp System.DateTime
Результат string

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

public static Sha1SecurePayDetailsHexString ( string input ) : string
input string
Результат string

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

public static Sha1SecurePayDetailsHexString ( string merchantId, string transxPassword, string transxType, string primaryRef, string amount, string fpTimestamp ) : string
merchantId string
transxPassword string
transxType string
primaryRef string
amount string
fpTimestamp string
Результат string

SingleCharge() публичный Метод

public SingleCharge ( SecurePayCardInfo card, SecurePayPayment payment, string referenceId ) : SecurePayMessage
card SecurePayCardInfo
payment SecurePayPayment
referenceId string
Результат SecurePayMessage

SinglePaymentXml() публичный Метод

TODO: replace this with creation of a SecurePayMessage object
public SinglePaymentXml ( SecurePayCardInfo card, SecurePayPayment payment, string purchaseOrderNo ) : string
card SecurePayCardInfo
payment SecurePayPayment
purchaseOrderNo string
Результат string

TriggerPeriodicPaymentXml() публичный Метод

TODO: replace this with creation of a SecurePayMessage object
public TriggerPeriodicPaymentXml ( string customerId, SecurePayPayment payment ) : string
customerId string
payment SecurePayPayment
Результат string

TriggerPeriodicPaymentXmlWithMessageId() публичный Метод

TODO: replace this with creation of a SecurePayMessage object
public TriggerPeriodicPaymentXmlWithMessageId ( string messageId, string customerId, SecurePayPayment payment ) : string
messageId string
customerId string
payment SecurePayPayment
Результат string

Описание свойств

ValidSuccessResponseCode публичное статическое свойство

public static List ValidSuccessResponseCode
Результат List