/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamShippingmethod, ShippingMethod)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamPromocodeoverride, PromoCodeOverride)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamProfileaddresschangedate, ProfileAddressChangeDate)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamPaypalcheckoutbtntype, PayPalCheckoutBtnType)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamProductcategory, ProductCategory)); if (_mItemList != null && _mItemList.Count > 0) { GenerateItemRequest(); } } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets Response params /// </summary> /// <param name="responseHashTable">Response Hash table by ref</param> internal override void SetParams(ref Hashtable responseHashTable) { try { BaStatus = (string)responseHashTable[PayflowConstants.ParamBaStatus]; BaDesc = (string)responseHashTable[PayflowConstants.ParamBaDesc]; responseHashTable.Remove(PayflowConstants.ParamBaStatus); responseHashTable.Remove(PayflowConstants.ParamBaDesc); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPPINGMETHOD, mShippingMethod)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_PROMOCODEOVERRIDE, mPromoCodeOverride)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_PROFILEADDRESSCHANGEDATE, mProfileAddressChangeDate)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_PAYPALCHECKOUTBTNTYPE, mPayPalCheckoutBtnType)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_PRODUCTCATEGORY, mProductCategory)); if (mItemList != null && mItemList.Count > 0) { GenerateItemRequest(); } } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { base.GenerateRequest(); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamExpdate, _mExpDate)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCvv2, Cvv2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCardstart, CardStart)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCardissue, CardIssue)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_BROWSERTIME, mBrowserTime)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_BROWSERCOUNTRYCODE, mBrowserCountryCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_BROWSERUSERAGENT, mBrowserUserAgent)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTOM, mCustom)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_BUTTONSOURCE, mButtonSource)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_NOTIFYURL, mNotifyURL)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTSESSIONID, mMerchantSessionId)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamBrowsertime, BrowserTime)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamBrowsercountrycode, BrowserCountryCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamBrowseruseragent, BrowserUserAgent)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCustom, Custom)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamButtonsource, ButtonSource)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamNotifyurl, NotifyUrl)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamMerchantsessionid, MerchantSessionId)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets the Fps Xml data /// </summary> /// <param name="responseHashTable">Response Hash table by ref</param> private void SetFpsXmlData(ref Hashtable responseHashTable) { string xmlData = null; try { xmlData = (string)responseHashTable[PayflowConstants.ParamFpsPrexmldata]; FpsPreXmlData = SetRules(xmlData); xmlData = (string)responseHashTable[PayflowConstants.ParamFpsPostxmldata]; FpsPostXmlData = SetRules(xmlData); responseHashTable.Remove(PayflowConstants.ParamFpsPrexmldata); responseHashTable.Remove(PayflowConstants.ParamFpsPostxmldata); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets the FPS rules applied. /// </summary> /// <param name="xmlData">Xml String</param> /// <returns>FPS Xml Data object</returns> private FpsXmlData SetRules(string xmlData) { try { var fpsData = new FpsXmlData(); if (xmlData != null && xmlData.Length > 0) { ArrayList ruleList = null; ruleList = ParseXmlData(xmlData); if (ruleList != null && ruleList.Count > 0) { fpsData.SetRuleList(ruleList); } } return(fpsData); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets the Response params in /// response data objects. /// </summary> /// <param name="responseHashTable">Response Hash table by ref</param> internal void SetParams(ref Hashtable responseHashTable) { try { PreFpsMsg = (string)responseHashTable[PayflowConstants.ParamPrefpsmsg]; PostFpsMsg = (string)responseHashTable[PayflowConstants.ParamPostfpsmsg]; responseHashTable.Remove(PayflowConstants.ParamPrefpsmsg); responseHashTable.Remove(PayflowConstants.ParamPostfpsmsg); SetFpsXmlData(ref responseHashTable); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates user item request /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER1, mUserItem1)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER2, mUserItem2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER3, mUserItem3)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER4, mUserItem4)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER5, mUserItem5)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER6, mUserItem6)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER7, mUserItem7)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER8, mUserItem8)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER9, mUserItem9)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_USER10, mUserItem10)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_STREET, this.BillToStreet)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_BILLTOSTREET2, this.BillToStreet2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CITY, this.BillToCity)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_STATE, this.BillToState)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_BILLTOCOUNTRY, this.BillToCountry)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_ZIP, this.BillToZip)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_PHONENUM, this.BillToPhone)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_BILLTOPHONE2, this.BillToPhone2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_EMAIL, this.BillToEmail)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_FAX, this.BillToFax)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_FIRSTNAME, this.BillToFirstName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MIDDLENAME, this.BillToMiddleName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_LASTNAME, this.BillToLastName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_HOMEPHONE, mBillToHomePhone)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_COMPANYNAME, mBillToCompanyName)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_REQNAME, mReqName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTCODE, mCustCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTIP, mCustIP)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTVATREGNUM, mCustVatRegNum)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_DOB, mDob)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTID, mCustId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTHOSTNAME, mCustHostName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTBROWSER, mCustBrowser)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTDATA, mCustData)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTOMERID, mCustomerId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CUSTOMERNUMBER, mCustomerNumber)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamReqname, ReqName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCustcode, CustCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCustip, _mCustIp)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCustvatregnum, _mCustVatRegNum)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamDob, _mDob)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCustid, _mCustId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCusthostname, _mCustHostName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCustbrowser, _mCustBrowser)); // 04/07/07 Moved CompanyName to BillTo class. // Removed 04/07/07 // RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CORPNAME, mCorpName)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_AUTHENICATION_ID, mAuthenticationId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_AUTHENICATION_STATUS, mAuthenticationStatus)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_ECI, mECI)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CAVV, mCAVV)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_XID, mXID)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_DSTRANSACTIONID, mDSTransactionId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_THREEDSVERSION, mThreeDSVersion)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamAuthenicationId, AuthenticationId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamAuthenicationStatus, AuthenticationStatus)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamEci, Eci)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCavv, Cavv)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamXid, Xid)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOSTREET, this.ShipToStreet)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOSTREET2, this.ShipToStreet2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOCITY, this.ShipToCity)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOSTATE, this.ShipToState)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOCOUNTRY, this.ShipToCountry)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOZIP, this.ShipToZip)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOPHONE, this.ShipToPhone)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOPHONE2, this.ShipToPhone2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOEMAIL, this.ShipToEmail)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOFIRSTNAME, this.ShipToFirstName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOMIDDLENAME, this.ShipToMiddleName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPTOLASTNAME, this.ShipToLastName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPCARRIER, mShipCarrier)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPMETHOD, mShipMethod)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPFROMZIP, mShipFromZip)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SHIPPEDFROMZIP, mShipFromZip)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets the FPS rules applied. /// </summary> /// <param name="XmlData">Xml String</param> /// <returns>FPS Xml Data object</returns> private FpsXmlData SetRules(String XmlData) { try { FpsXmlData FpsData = new FpsXmlData(); if (XmlData != null && XmlData.Length > 0) { ArrayList RuleList = null; RuleList = ParseXmlData(XmlData); if (RuleList != null && RuleList.Count > 0) { FpsData.SetRuleList(RuleList); } } return(FpsData); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets the Response params in /// response data objects. /// </summary> ///<param name="ResponseHashTable">Response Hash table by ref</param> internal void SetParams(ref Hashtable ResponseHashTable) { try { mPreFpsMsg = (String)ResponseHashTable[PayflowConstants.PARAM_PREFPSMSG]; mPostFpsMsg = (String)ResponseHashTable[PayflowConstants.PARAM_POSTFPSMSG]; ResponseHashTable.Remove(PayflowConstants.PARAM_PREFPSMSG); ResponseHashTable.Remove(PayflowConstants.PARAM_POSTFPSMSG); SetFpsXmlData(ref ResponseHashTable); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets the Fps Xml data /// </summary> ///<param name="ResponseHashTable">Response Hash table by ref</param> private void SetFpsXmlData(ref Hashtable ResponseHashTable) { String XmlData = null; try { XmlData = (String)ResponseHashTable[PayflowConstants.PARAM_FPS_PREXMLDATA]; mFpsPreXmlData = SetRules(XmlData); XmlData = (String)ResponseHashTable[PayflowConstants.PARAM_FPS_POSTXMLDATA]; mFpsPostXmlData = SetRules(XmlData); ResponseHashTable.Remove(PayflowConstants.PARAM_FPS_PREXMLDATA); ResponseHashTable.Remove(PayflowConstants.PARAM_FPS_POSTXMLDATA); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { //Set the base acct field as swipe in the request. if (base.Acct != "") { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_SWIPE, base.Acct)); } if (mMagtekInfo != null) { mMagtekInfo.RequestBuffer = RequestBuffer; mMagtekInfo.GenerateRequest(); } } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamStreet, AddressStreet)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamBilltostreet2, AddressStreet2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCity, AddressCity)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamState, AddressState)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamBilltocountry, AddressCountry)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamZip, AddressZip)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamPhonenum, AddressPhone)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamBilltophone2, AddressPhone2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamEmail, AddressEmail)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamFax, AddressFax)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamFirstname, AddressFirstName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamMiddlename, AddressMiddleName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamLastname, AddressLastName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamHomephone, BillToHomePhone)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamCompanyname, BillToCompanyName)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { //Generate default NV Pair for Acct field. //This is with Name as ACCT. Used for CC,ACH trxns. //In case of telecheck, this will be MICR. Handled from derived class. //In case of Swipe , this will be SWIPE.Handled from derived class. RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamAcct, Acct)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamName, Name)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTNAME, mMerchantName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTSTREET, mMerchantStreet)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTCITY, mMerchantCity)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTSTATE, mMerchantState)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTZIP, mMerchantZip)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTCOUNTRYCODE, mMerchantCountryCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTURL, mMerchantUrl)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTVATNUM, mMerchantVatNum)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTINVNUM, mMerchantInvNum)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTLOCATIONID, mMerchantLocationId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTID, mMerchantId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHANTCONTACTINFO, mMerchantContactInfo)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHDESCR, mMerchDescr)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_MERCHSVC, mMerchSvc)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } }
/// <summary> /// Generates user item request /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser1, UserItem1)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser2, UserItem2)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser3, UserItem3)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser4, UserItem4)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser5, UserItem5)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser6, UserItem6)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser7, UserItem7)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser8, UserItem8)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser9, UserItem9)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamUser10, UserItem10)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } }
/// <summary> /// Sets Response params /// </summary> /// <param name="responseHashTable">Response Hash table by ref</param> internal override void SetParams(ref Hashtable responseHashTable) { try { EMail = (string)responseHashTable[PayflowConstants.ParamEmail]; PayerId = (string)responseHashTable[PayflowConstants.ParamPayerid]; PayerStatus = (string)responseHashTable[PayflowConstants.ParamPayerstatus]; ShipToFirstName = (string)responseHashTable[PayflowConstants.ParamShiptofirstname]; ShipToLastName = (string)responseHashTable[PayflowConstants.ParamShiptolastname]; ShipToCountry = (string)responseHashTable[PayflowConstants.ParamShiptocountry]; ShipToBusiness = (string)responseHashTable[PayflowConstants.ParamShiptobusiness]; AddressStatus = (string)responseHashTable[PayflowConstants.ParamAddrstatus]; FirstName = (string)responseHashTable[PayflowConstants.ParamFirstname]; LastName = (string)responseHashTable[PayflowConstants.ParamLastname]; ShipToStreet = (string)responseHashTable[PayflowConstants.ParamShiptostreet]; ShipToStreet2 = (string)responseHashTable[PayflowConstants.ParamShiptostreet2]; ShipToCity = (string)responseHashTable[PayflowConstants.ParamShiptocity]; ShipToState = (string)responseHashTable[PayflowConstants.ParamShiptostate]; ShipToZip = (string)responseHashTable[PayflowConstants.ParamShiptozip]; CountryCode = (string)responseHashTable[PayflowConstants.ParamCountrycode]; PhoneNum = (string)responseHashTable[PayflowConstants.ParamPhonenum]; BaFlag = (string)responseHashTable[PayflowConstants.ParamBaFlag]; responseHashTable.Remove(PayflowConstants.ParamEmail); responseHashTable.Remove(PayflowConstants.ParamPayerid); responseHashTable.Remove(PayflowConstants.ParamPayerstatus); responseHashTable.Remove(PayflowConstants.ParamShiptofirstname); responseHashTable.Remove(PayflowConstants.ParamShiptolastname); responseHashTable.Remove(PayflowConstants.ParamShiptocountry); responseHashTable.Remove(PayflowConstants.ParamShiptobusiness); responseHashTable.Remove(PayflowConstants.ParamAddrstatus); responseHashTable.Remove(PayflowConstants.ParamFirstname); responseHashTable.Remove(PayflowConstants.ParamLastname); responseHashTable.Remove(PayflowConstants.ParamShiptostreet); responseHashTable.Remove(PayflowConstants.ParamShiptostreet2); responseHashTable.Remove(PayflowConstants.ParamShiptocity); responseHashTable.Remove(PayflowConstants.ParamShiptostate); responseHashTable.Remove(PayflowConstants.ParamShiptozip); responseHashTable.Remove(PayflowConstants.ParamCountrycode); responseHashTable.Remove(PayflowConstants.ParamPhonenum); responseHashTable.Remove(PayflowConstants.ParamBaFlag); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Sets Response params /// </summary> ///<param name="ResponseHashTable">Response Hash table by ref</param> internal override void SetParams(ref Hashtable ResponseHashTable) { try { mEMail = (String)ResponseHashTable[PayflowConstants.PARAM_EMAIL]; mPayerId = (String)ResponseHashTable[PayflowConstants.PARAM_PAYERID]; mPayerStatus = (String)ResponseHashTable[PayflowConstants.PARAM_PAYERSTATUS]; mShipToFirstName = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOFIRSTNAME]; mShipToLastName = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOLASTNAME]; mShipToCountryCode = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOCOUNTRY]; mShipToBusiness = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOBUSINESS]; mAddrStatus = (String)ResponseHashTable[PayflowConstants.PARAM_ADDRSTATUS]; mFirstName = (String)ResponseHashTable[PayflowConstants.PARAM_FIRSTNAME]; mLastName = (String)ResponseHashTable[PayflowConstants.PARAM_LASTNAME]; mStreet = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOSTREET]; mStreet2 = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOSTREET2]; mCity = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOCITY]; mState = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOSTATE]; mPostalCode = (String)ResponseHashTable[PayflowConstants.PARAM_SHIPTOZIP]; mCountryCode = (String)ResponseHashTable[PayflowConstants.PARAM_COUNTRYCODE]; mPhoneNum = (String)ResponseHashTable[PayflowConstants.PARAM_PHONENUM]; mBA_Flag = (String)ResponseHashTable[PayflowConstants.PARAM_BA_FLAG]; ResponseHashTable.Remove(PayflowConstants.PARAM_EMAIL); ResponseHashTable.Remove(PayflowConstants.PARAM_PAYERID); ResponseHashTable.Remove(PayflowConstants.PARAM_PAYERSTATUS); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOFIRSTNAME); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOLASTNAME); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOCOUNTRY); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOBUSINESS); ResponseHashTable.Remove(PayflowConstants.PARAM_ADDRSTATUS); ResponseHashTable.Remove(PayflowConstants.PARAM_FIRSTNAME); ResponseHashTable.Remove(PayflowConstants.PARAM_LASTNAME); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOSTREET); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOSTREET2); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOCITY); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOSTATE); ResponseHashTable.Remove(PayflowConstants.PARAM_SHIPTOZIP); ResponseHashTable.Remove(PayflowConstants.PARAM_COUNTRYCODE); ResponseHashTable.Remove(PayflowConstants.PARAM_PHONENUM); ResponseHashTable.Remove(PayflowConstants.PARAM_BA_FLAG); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } //catch //{ // throw new Exception(); //} }
/// <summary> /// Generates line item request /// </summary> /// <param name="Index">index number of line item</param> internal void GenerateRequest(int Index) { try { String IndexVal = Index.ToString(); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_AMT + IndexVal, mAmt)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_COST + IndexVal, mCost)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_FREIGHTAMT + IndexVal, mFreightAmt)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_HANDLINGAMT + IndexVal, mHandlingAmt)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_TAXAMT + IndexVal, mTaxAmt)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_UOM + IndexVal, mUom)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_PICKUPSTREET + IndexVal, mPickupStreet)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_PICKUPSTATE + IndexVal, mPickupState)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_PICKUPCOUNTRY + IndexVal, mPickupCountry)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_PICKUPCITY + IndexVal, mPickupCity)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_PICKUPZIP + IndexVal, mPickupZip)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_DESC + IndexVal, mDesc)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_DISCOUNT + IndexVal, mDiscount)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_MANUFACTURER + IndexVal, mManufacturer)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_PRODCODE + IndexVal, mProdCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_ITEMNUMBER + IndexVal, mItemNumber)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_NAME + IndexVal, mName)); if (mQty != PayflowConstants.INVALID_NUMBER) { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_QTY + IndexVal, mQty)); } RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_SKU + IndexVal, mSku)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_TAXRATE + IndexVal, mTaxRate)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_TAXTYPE + IndexVal, mTaxType)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_TYPE + IndexVal, mType)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_COMMCODE + IndexVal, mCommCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_TRACKINGNUM + IndexVal, mTrackingNum)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_COSTCENTERNUM + IndexVal, mCostCenterNum)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_CATALOGNUM + IndexVal, mCatalogNum)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_UPC + IndexVal, mUpc)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_UNSPSCCODE + IndexVal, mUnspscCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_ALTTAXAMT + IndexVal, mAltTaxAmt)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_ALTTAXID + IndexVal, mAltTaxId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_ALTTAXRATE + IndexVal, mAltTaxRate)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_CARRIERSERVICELEVELCODE + IndexVal, mCarrierServiceLevelCode)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_L_EXTAMT + IndexVal, mExtAmt)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } }
/// <summary> /// Generates line item request /// </summary> /// <param name="Index">index number of line item</param> internal void GenerateRequest(int Index) { try { String IndexVal = Index.ToString(); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_PROMOCODE + IndexVal, mPromoCode)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CATTYPE, mCatType)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_CONTACTLESS, mContactless)); } catch (BaseException) { throw; } catch (Exception Ex) { DataObjectException DEx = new DataObjectException(Ex); throw DEx; } }
/// <summary> /// Generates the transaction request. /// </summary> internal override void GenerateRequest() { try { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamProfilename, ProfileName)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamStart, Start)); if (Term != PayflowConstants.InvalidNumber) { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamTerm, Term)); } RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamPayperiod, _mPayPeriod)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamOptionaltrx, OptionalTrx)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamOptionaltrxamt, OptionalTrxAmt)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamRetrynumdays, RetryNumDays)); if (MaxFailPayments != PayflowConstants.InvalidNumber) { RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamMaxfailpayments, MaxFailPayments)); } RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamOrigprofileid, OrigProfileId)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamPaymenthistory, PaymentHistory)); RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.ParamPaymentnum, PaymentNum)); //RequestBuffer.Append(PayflowUtility.AppendToRequest(PayflowConstants.PARAM_RECURRING, mRecurring)); } catch (BaseException) { throw; } catch (Exception ex) { var dEx = new DataObjectException(ex); throw dEx; } //catch //{ // throw new Exception(); //} }