コード例 #1
0
        public static GrossBillingInformation GetGrossBillingSettleData()
        {
            var grossBillingInformation = new GrossBillingInformation()
            {
                GrossSettleBankData = new BankAccountData()
                {
                    AccountCountryCode   = "USA",
                    AccountName          = "MyBankAccount",
                    AccountNumber        = "123456788",
                    AccountOwnershipType = "Personal",
                    AccountType          = "C",
                    RoutingNumber        = "102000076",
                    AccountHolderName    = "John"
                },
                GrossSettleAddress = new Address()
                {
                    StreetAddress1 = "123 Main St.",
                    City           = "Downtown",
                    State          = "NJ",
                    PostalCode     = "12345",
                    Country        = "USA"
                },
                GrossSettleCreditCardData = new CreditCardData()
                {
                    Number         = "4111111111111111",
                    ExpMonth       = 12,
                    ExpYear        = 2025,
                    Cvn            = "123",
                    CardHolderName = "Joe Smith"
                }
            };

            return(grossBillingInformation);
        }
コード例 #2
0
 private void HydrateGrossBillingData(ElementTree xml, Element xmlTrans, GrossBillingInformation grossBillingInformation)
 {
     xml.SubElement(xmlTrans, "GrossSettleAddress", grossBillingInformation.GrossSettleAddress.StreetAddress1);
     xml.SubElement(xmlTrans, "GrossSettleCity", grossBillingInformation.GrossSettleAddress.City);
     xml.SubElement(xmlTrans, "GrossSettleState", grossBillingInformation.GrossSettleAddress.State);
     xml.SubElement(xmlTrans, "GrossSettleZipCode", grossBillingInformation.GrossSettleAddress.PostalCode);
     xml.SubElement(xmlTrans, "GrossSettleCountry", grossBillingInformation.GrossSettleAddress.Country);
     xml.SubElement(xmlTrans, "GrossSettleCreditCardNumber", grossBillingInformation.GrossSettleCreditCardData.Number);
     xml.SubElement(xmlTrans, "GrossSettleNameOnCard", grossBillingInformation.GrossSettleCreditCardData.CardHolderName);
     xml.SubElement(xmlTrans, "GrossSettleCreditCardExpDate", grossBillingInformation.GrossSettleCreditCardData.ShortExpiry);
     xml.SubElement(xmlTrans, "GrossSettleAccountCountryCode", grossBillingInformation.GrossSettleBankData.AccountCountryCode);
     xml.SubElement(xmlTrans, "GrossSettleAccountHolderName", grossBillingInformation.GrossSettleBankData.AccountHolderName);
     xml.SubElement(xmlTrans, "GrossSettleAccountNumber", grossBillingInformation.GrossSettleBankData.AccountNumber);
     xml.SubElement(xmlTrans, "GrossSettleAccountType", grossBillingInformation.GrossSettleBankData.AccountType);
     xml.SubElement(xmlTrans, "GrossSettleRoutingNumber", grossBillingInformation.GrossSettleBankData.RoutingNumber);
 }
コード例 #3
0
 public PayFacBuilder WithGrossBillingSettleData(GrossBillingInformation grossBillingInformation)
 {
     GrossBillingInformation = grossBillingInformation;
     return(this);
 }