Ejemplo n.º 1
0
        public override void Configure(IConfigSectionNode node)
        {
            base.Configure(node);

            var email          = node.AttrByName(CONFIG_EMAIL_ATTR).Value;
            var secretKey      = node.AttrByName(CONFIG_SECRETKEY_ATTR).Value;
            var publishableKey = node.AttrByName(CONFIG_PUBLISHABLEKEY_ATTR).Value;

            var cred = new StripeCredentials(email, secretKey, publishableKey);
            var at   = new AuthenticationToken(STRIPE_REALM, publishableKey);

            User = new User(cred, at, UserStatus.User, publishableKey, publishableKey, Rights.None);
        }
Ejemplo n.º 2
0
        public override void Configure(IConfigSectionNode node)
        {
            base.Configure(node);

              var email = node.AttrByName(CONFIG_EMAIL_ATTR).Value;
              var secretKey = node.AttrByName(CONFIG_SECRETKEY_ATTR).Value;
              var publishableKey = node.AttrByName(CONFIG_PUBLISHABLEKEY_ATTR).Value;

              var cred = new StripeCredentials(email, secretKey, publishableKey);
              var at = new AuthenticationToken(STRIPE_REALM, publishableKey);

              User = new User(cred, at, UserStatus.User, publishableKey, publishableKey, Rights.None);
        }