C# 클래스 Payments.SecurePay.SecurePayGateway

상속: ISecurePayGateway
파일 보기 프로젝트 열기: NickJosevski/Payments.AU 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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