This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum BusinessType | |
{ | |
Proprietorship, SingleMemberLLC, Corporation | |
} | |
public static string ConvertToStripe(this BusinessType businessType) | |
{ | |
switch (businessType) | |
{ | |
case BusinessType.Proprietorship: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var secretKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes("KeyForSignInSecret@1234")); | |
var signinCredentials = new SigningCredentials(secretKey, SecurityAlgorithms.HmacSha256); | |
var tokeOptions = new JwtSecurityToken( | |
issuer: url, | |
audience: url, | |
claims: new List<Claim>(), | |
expires: DateTime.Now.AddMinutes(30), | |
signingCredentials: signinCredentials | |
); |