Impliment soft-payments

This commit is contained in:
2026-03-08 19:28:10 -07:00
parent 54ea7c3027
commit 78bdf250ff
7 changed files with 114 additions and 12 deletions
+8 -2
View File
@@ -1,6 +1,7 @@
using WebServer.Components;
using PythonInterop;
using DataBase;
using Controllers.PythonInterop;
using Controllers.DataBase;
using Controllers.Payment;
// Load the module in globally and use correct path for local or docker runners
#if DEBUG
@@ -21,6 +22,11 @@ if (args.Contains("Pull-Stock-Data")) {
// Insert the DB driver for Dependency Injection
builder.Services.AddScoped<DbDriver>();
// Insert the payment Processor
builder.Services.AddSingleton<IPayment>(
new PaymentTestor() // Of type Payment Testor -> Change this with stripe or square in the future
);
// Insert the python modlue for Dependency Injection
builder.Services.AddSingleton(interopModule);