public BuyController() { // TODO: make this constructor injected _eway = new EwayPaymentGateway(); // TODO: this won't exist here, this is up to you to manage in your system. _customer = new EwayCustomerDetails { Title = "Mr.", FirstName = "Just", LastName = "SetupTheCustomer", Country = "au", }; _payment = new EwayPayment { InvoiceDescription = "Customer Created", InvoiceNumber = Guid.NewGuid().ToString(), InvoiceReference = Guid.NewGuid().ToString(), TotalAmount = DateTime.Now.Minute * 100 }; }
public PaymentCompleteController() { // TODO: make this constructor injected _eway = new EwayPaymentGateway(); }