C# Class Moolah.DataCash.DataCashRequestBuilderBase

Exibir arquivo Open project: davidduffett/Moolah

Public Methods

Method Description
DataCashRequestBuilderBase ( Moolah.DataCash.DataCashConfiguration configuration ) : System
GetDocument ( ) : System.Xml.Linq.XDocument

Protected Methods

Method 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

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

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

CardTxnElement() protected method

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

Cv2AvsElement() protected method

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

DataCashRequestBuilderBase() public method

public DataCashRequestBuilderBase ( Moolah.DataCash.DataCashConfiguration configuration ) : System
configuration Moolah.DataCash.DataCashConfiguration
return System

GetDocument() public method

public GetDocument ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

TxnDetailsElement() protected method

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