diff --git a/src/Server/Controllers/PaymentMethods/IPayment.cs b/src/Server/Controllers/PaymentMethods/IPayment.cs index 73196d3..ae9c4be 100644 --- a/src/Server/Controllers/PaymentMethods/IPayment.cs +++ b/src/Server/Controllers/PaymentMethods/IPayment.cs @@ -1,5 +1,3 @@ -using BoredCareers.Entities; - namespace BoredCareers.Controllers.Payment { public interface IPayment { @@ -8,7 +6,7 @@ namespace BoredCareers.Controllers.Payment { public static string _EndpointSecret = ""; public static string _PublicKey = ""; - public Task ValidatePurchase(string WebHookData, string Headers); + public void ValidatePurchase(string WebHookData, string Headers); } diff --git a/src/Server/Controllers/PaymentMethods/StripeIntents.cs b/src/Server/Controllers/PaymentMethods/StripeIntents.cs index fca5a5e..ddb6294 100644 --- a/src/Server/Controllers/PaymentMethods/StripeIntents.cs +++ b/src/Server/Controllers/PaymentMethods/StripeIntents.cs @@ -11,7 +11,7 @@ namespace BoredCareers.Controllers { _databaseService = databaseService; } - public async Task ValidatePurchase(string WebHookData, string Headers) { + public void ValidatePurchase(string WebHookData, string Headers) { Stripe.Event e = Stripe.EventUtility.ConstructEvent( WebHookData, Headers, IPayment._EndpointSecret ); if (e.Type == "payment_intent.succeeded") { // Extract Data from payment confirm diff --git a/src/Server/Services/EmailService/ResetPasswordEmail.cs b/src/Server/Services/EmailService/ResetPasswordEmail.cs index 9481aeb..7eff79c 100755 --- a/src/Server/Services/EmailService/ResetPasswordEmail.cs +++ b/src/Server/Services/EmailService/ResetPasswordEmail.cs @@ -1,5 +1,3 @@ -using System.Net.Mail; - namespace BoredCareers.Services { public partial class EmailService { diff --git a/src/Server/Services/EmailService/VerifyEmail.cs b/src/Server/Services/EmailService/VerifyEmail.cs index 575bf08..9207038 100755 --- a/src/Server/Services/EmailService/VerifyEmail.cs +++ b/src/Server/Services/EmailService/VerifyEmail.cs @@ -1,5 +1,3 @@ -using System.Net.Mail; - namespace BoredCareers.Services { public partial class EmailService { diff --git a/src/Server/Services/jwt.cs b/src/Server/Services/jwt.cs index 5fe00de..876adb2 100644 --- a/src/Server/Services/jwt.cs +++ b/src/Server/Services/jwt.cs @@ -1,7 +1,4 @@ - - using System.IdentityModel.Tokens.Jwt; -using System.Runtime.CompilerServices; using System.Security.Claims; using System.Text; using Microsoft.IdentityModel.Tokens;