working #6
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System.Net.Mail;
|
||||
|
||||
namespace BoredCareers.Services {
|
||||
public partial class EmailService {
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System.Net.Mail;
|
||||
|
||||
namespace BoredCareers.Services {
|
||||
public partial class EmailService {
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
|
||||
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security.Claims;
|
||||
using System.Text;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
Reference in New Issue
Block a user