flamingo.me/flamingo-commerce/v3@v3.11.0/test/integrationtest/projecttest/modules/payment/module.go (about) 1 package payment 2 3 import ( 4 "flamingo.me/dingo" 5 "flamingo.me/flamingo-commerce/v3/payment/interfaces" 6 ) 7 8 type ( 9 // Module registers our fake payment profile 10 Module struct{} 11 ) 12 13 // Configure module 14 func (m *Module) Configure(injector *dingo.Injector) { 15 injector.BindMap((*interfaces.WebCartPaymentGateway)(nil), FakePaymentGateway).To(new(FakeGateway)).In(dingo.Singleton) 16 }