Exemple #1
0
        public static DPay Instance(PaidType type)
        {
            switch (type)
            {
            case PaidType.Alipay:
                return(new Factory.Alipay());

            case PaidType.Weixin:
                return(new Weixin());

            default:
                return(null);
            }
        }
Exemple #2
0
 protected PlatConfig Get(PaidType type)
 {
     var config = ConfigUtils<OnlinePayConfig>.Instance.Get();
     return config?.Platforms?.FirstOrDefault(t => t.Type == type);
 }
Exemple #3
0
        protected PlatConfig Get(PaidType type)
        {
            var config = ConfigUtils <OnlinePayConfig> .Instance.Get();

            return(config?.Platforms?.FirstOrDefault(t => t.Type == type));
        }