public MellatBankConfig()
        {
            this.GatewayUrl    = ConfigurationManager.AppSettings["BankMellatGateway"];
            this.GatewayMethod = HttpMethod.Post;

            var c = new ShetabBankUserPassPinCredentials();

            c.Pin      = ConfigurationManager.AppSettings["BankMellatPin"];
            c.Username = ConfigurationManager.AppSettings["BankMellatUser"];
            c.Password = ConfigurationManager.AppSettings["BankMellatPass"];

            this.Credentials = c;
        }
        public SamanBankConfig()
        {
            this.GatewayUrl = ConfigurationManager.AppSettings["BankSamanGatewayUrl"];
            if (string.IsNullOrEmpty(this.GatewayUrl))
            {
                this.GatewayUrl = "https://sep.shaparak.ir/payment.aspx";
            }
            this.CallbackUrl           = ConfigurationManager.AppSettings["BankSamanCallbackUrl"];
            this.GatewayMethod         = HttpMethod.Post;
            this.MaxFinishPaymentRetry = SafeClrConvert.ToInt32(ConfigurationManager.AppSettings["BankSamanMaxFinishPaymentRetry"]);

            var c = new ShetabBankUserPassPinCredentials();

            c.Pin      = SafeClrConvert.ToString(ConfigurationManager.AppSettings["BankSamanMerchantID"]);
            c.Username = c.Pin;
            c.Password = SafeClrConvert.ToString(ConfigurationManager.AppSettings["BankSamanMerchantPass"]);

            this.Credentials = c;
        }