C# Class Payments.SecurePay.SecurePayGateway

Inheritance: ISecurePayGateway
Datei anzeigen Open project: NickJosevski/Payments.AU Class Usage Examples

Public Properties

Property Type Description
ValidSuccessResponseCode List

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

ChargeExistingCustomer() public method

public ChargeExistingCustomer ( string clientId, SecurePayPayment payment ) : SecurePayMessage
clientId string
payment SecurePayPayment
return SecurePayMessage

CreateClientId() public static method

public static CreateClientId ( ) : string
return string

CreateCustomerWithCharge() public method

public CreateCustomerWithCharge ( string clientId, SecurePayCardInfo card, SecurePayPayment payment ) : SecurePayMessage
clientId string
card SecurePayCardInfo
payment SecurePayPayment
return SecurePayMessage

CreateMessageId() public static method

public static CreateMessageId ( ) : string
return string

CreateReadyToTriggerPaymentXml() public method

public CreateReadyToTriggerPaymentXml ( SecurePayCardInfo card, string customerId, SecurePayPayment payment ) : string
card SecurePayCardInfo
customerId string
payment SecurePayPayment
return string

CreateScheduledPaymentXml() public method

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
return string

GetTimeStamp() public static method

public static GetTimeStamp ( System.DateTime timeStamp ) : string
timeStamp System.DateTime
return string

SecurePayGateway() public method

public SecurePayGateway ( ICommunicate endpoint, string merchantId, string merchantPassword, string apiUri ) : System
endpoint ICommunicate
merchantId string
merchantPassword string
apiUri string
return System

SendMessage() public method

public SendMessage ( string requestMessage, string callingMethod ) : SecurePayMessage
requestMessage string
callingMethod string
return SecurePayMessage

Sha1SecurePayDetails() public static method

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
return string

Sha1SecurePayDetailsHexString() public static method

public static Sha1SecurePayDetailsHexString ( string input ) : string
input string
return string

Sha1SecurePayDetailsHexString() public static method

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
return string

SingleCharge() public method

public SingleCharge ( SecurePayCardInfo card, SecurePayPayment payment, string referenceId ) : SecurePayMessage
card SecurePayCardInfo
payment SecurePayPayment
referenceId string
return SecurePayMessage

SinglePaymentXml() public method

TODO: replace this with creation of a SecurePayMessage object
public SinglePaymentXml ( SecurePayCardInfo card, SecurePayPayment payment, string purchaseOrderNo ) : string
card SecurePayCardInfo
payment SecurePayPayment
purchaseOrderNo string
return string

TriggerPeriodicPaymentXml() public method

TODO: replace this with creation of a SecurePayMessage object
public TriggerPeriodicPaymentXml ( string customerId, SecurePayPayment payment ) : string
customerId string
payment SecurePayPayment
return string

TriggerPeriodicPaymentXmlWithMessageId() public method

TODO: replace this with creation of a SecurePayMessage object
public TriggerPeriodicPaymentXmlWithMessageId ( string messageId, string customerId, SecurePayPayment payment ) : string
messageId string
customerId string
payment SecurePayPayment
return string

Property Details

ValidSuccessResponseCode public_oe static_oe property

public static List ValidSuccessResponseCode
return List