Impliment soft-payments
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user