Removed passphrase from PaymentGateway
continuous-integration/drone/pr Build is failing

This commit is contained in:
Khwezi Mngoma
2026-06-01 09:19:08 +02:00
parent 8fe129e19c
commit f1ef614cbb
7 changed files with 1260 additions and 9 deletions
@@ -15,6 +15,5 @@ public sealed class PaymentGatewayConfiguration : IEntityTypeConfiguration<Payme
builder.Property(f => f.MerchantId).IsRequired();
builder.Property(f => f.Enabled);
builder.Property(f => f.Name).IsRequired();
builder.Property(f => f.Passphrase).IsRequired();
}
}
@@ -16,8 +16,6 @@ public class PaymentGateway
public string? MerchantKey { get; set; }
public string? Passphrase { get; set; }
public bool IsSandbox { get; set; }
public bool Enabled { get; set; }
@@ -174,7 +174,6 @@ public sealed class PaymentService(IDbContextFactory<MidrandBooksDbContext> cont
MerchantKey = request.MerchantKey,
Name = request.Name,
Website = request.Website,
Passphrase = "N/A",
});
return await context.SaveChangesAsync(cancellationToken) > 0