C# Class Payments.SecurePay.SecurePayGateway

Inheritance: ISecurePayGateway
Afficher le fichier Open project: NickJosevski/Payments.AU Class Usage Examples

Méthodes publiques

Свойство Type Description
ValidSuccessResponseCode List

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ChargeExistingCustomer ( string clientId, SecurePayPayment payment ) : SecurePayMessage
clientId string
payment SecurePayPayment
Résultat SecurePayMessage

CreateClientId() public static méthode

public static CreateClientId ( ) : string
Résultat string

CreateCustomerWithCharge() public méthode

public CreateCustomerWithCharge ( string clientId, SecurePayCardInfo card, SecurePayPayment payment ) : SecurePayMessage
clientId string
card SecurePayCardInfo
payment SecurePayPayment
Résultat SecurePayMessage

CreateMessageId() public static méthode

public static CreateMessageId ( ) : string
Résultat string

CreateReadyToTriggerPaymentXml() public méthode

public CreateReadyToTriggerPaymentXml ( SecurePayCardInfo card, string customerId, SecurePayPayment payment ) : string
card SecurePayCardInfo
customerId string
payment SecurePayPayment
Résultat string

CreateScheduledPaymentXml() public méthode

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
Résultat string

GetTimeStamp() public static méthode

public static GetTimeStamp ( System.DateTime timeStamp ) : string
timeStamp System.DateTime
Résultat string

SecurePayGateway() public méthode

public SecurePayGateway ( ICommunicate endpoint, string merchantId, string merchantPassword, string apiUri ) : System
endpoint ICommunicate
merchantId string
merchantPassword string
apiUri string
Résultat System

SendMessage() public méthode

public SendMessage ( string requestMessage, string callingMethod ) : SecurePayMessage
requestMessage string
callingMethod string
Résultat SecurePayMessage

Sha1SecurePayDetails() public static méthode

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
Résultat string

Sha1SecurePayDetailsHexString() public static méthode

public static Sha1SecurePayDetailsHexString ( string input ) : string
input string
Résultat string

Sha1SecurePayDetailsHexString() public static méthode

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
Résultat string

SingleCharge() public méthode

public SingleCharge ( SecurePayCardInfo card, SecurePayPayment payment, string referenceId ) : SecurePayMessage
card SecurePayCardInfo
payment SecurePayPayment
referenceId string
Résultat SecurePayMessage

SinglePaymentXml() public méthode

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

TriggerPeriodicPaymentXml() public méthode

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

TriggerPeriodicPaymentXmlWithMessageId() public méthode

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

Property Details

ValidSuccessResponseCode public_oe static_oe property

public static List ValidSuccessResponseCode
Résultat List