C# Class Moolah.DataCash.DataCashRequestBuilderBase

Afficher le fichier Open project: davidduffett/Moolah

Méthodes publiques

Méthode Description
DataCashRequestBuilderBase ( Moolah.DataCash.DataCashConfiguration configuration ) : System
GetDocument ( ) : System.Xml.Linq.XDocument

Méthodes protégées

Méthode Description
CardElement ( CardDetails card, Moolah.DataCash.BillingAddress billingAddress ) : System.Xml.Linq.XElement
CardTxnElement ( CardDetails card, Moolah.DataCash.BillingAddress billingAddress ) : System.Xml.Linq.XElement
Cv2AvsElement ( CardDetails card, Moolah.DataCash.BillingAddress billingAddress ) : System.Xml.Linq.XElement
TxnDetailsElement ( string merchantReference, decimal amount, string currencyCode ) : System.Xml.Linq.XElement

Private Methods

Méthode Description
authenticationElement ( ) : System.Xml.Linq.XElement
formatPostcode ( string postcode ) : string

Postcodes sent to DataCash must be "A maximum of 9 alphanumeric characters."

numericPartsOfAddress ( Moolah.DataCash.BillingAddress billingAddress ) : string

AVS checks strip out all non-numeric characters from addresses. The DataCash specification clearly states that we can do this ourselves before sending the address to them.

requestElement ( ) : System.Xml.Linq.XElement
transactionElement ( ) : System.Xml.Linq.XElement

Method Details

CardElement() protected méthode

protected CardElement ( CardDetails card, Moolah.DataCash.BillingAddress billingAddress ) : System.Xml.Linq.XElement
card CardDetails
billingAddress Moolah.DataCash.BillingAddress
Résultat System.Xml.Linq.XElement

CardTxnElement() protected méthode

protected CardTxnElement ( CardDetails card, Moolah.DataCash.BillingAddress billingAddress ) : System.Xml.Linq.XElement
card CardDetails
billingAddress Moolah.DataCash.BillingAddress
Résultat System.Xml.Linq.XElement

Cv2AvsElement() protected méthode

protected Cv2AvsElement ( CardDetails card, Moolah.DataCash.BillingAddress billingAddress ) : System.Xml.Linq.XElement
card CardDetails
billingAddress Moolah.DataCash.BillingAddress
Résultat System.Xml.Linq.XElement

DataCashRequestBuilderBase() public méthode

public DataCashRequestBuilderBase ( Moolah.DataCash.DataCashConfiguration configuration ) : System
configuration Moolah.DataCash.DataCashConfiguration
Résultat System

GetDocument() public méthode

public GetDocument ( ) : System.Xml.Linq.XDocument
Résultat System.Xml.Linq.XDocument

TxnDetailsElement() protected méthode

protected TxnDetailsElement ( string merchantReference, decimal amount, string currencyCode ) : System.Xml.Linq.XElement
merchantReference string
amount decimal
currencyCode string
Résultat System.Xml.Linq.XElement