public void LoginTest()
        {
            isTest = true;
            MerchantConfigValue[] config = new MerchantConfigValue[]
            {
                new MerchantConfigValue
                {
                    Key   = "PayGateID",
                    Value = "10011021600"
                },
                new MerchantConfigValue
                {
                    Key   = "Password",
                    Value = "test"
                },
                new MerchantConfigValue
                {
                    Key   = "BankAccountEnabled",
                    Value = BankAccountEnabled.ToString()
                },
                new MerchantConfigValue
                {
                    Key   = "CreditCardEnabled",
                    Value = CreditCardEnabled.ToString()
                }
            };

            Login(true, config);
        }
Exemple #2
0
        /// <summary>
        /// Logs in using test credentials, need to pre-set BankAccountEnabled and CreditCardEnabled for stuff to work
        /// </summary>
        public void LoginTest()
        {
            isTest = true;
            MerchantConfigValue[] config = new MerchantConfigValue[]
            {
                new MerchantConfigValue
                {
                    Key   = "MerchantNumber",
                    Value = "AB99999"
                },
                new MerchantConfigValue
                {
                    Key   = "MerchantUID",
                    Value = "9a6646ab-5e5e-40b8-aa06-015ec6031bd0"
                },
                new MerchantConfigValue
                {
                    Key   = "ApplicationUID",
                    Value = "bbd74b25-51a3-4bdc-8c90-d64f2c23b9ef"
                },
                new MerchantConfigValue
                {
                    Key   = "ServiceType",
                    Value = "TwoDay"
                },
                new MerchantConfigValue
                {
                    Key   = "BankAccountEnabled",
                    Value = BankAccountEnabled.ToString()
                },
                new MerchantConfigValue
                {
                    Key   = "CreditCardEnabled",
                    Value = CreditCardEnabled.ToString()
                }
            };

            Login(true, config);
        }