feat: payment service with IPG
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { Logger, Module } from '@nestjs/common';
|
||||
import { UserModule } from '../user/user.module';
|
||||
import { UserDataAccess } from '../../dataAccess/user.dataAccess';
|
||||
import { PaymentService } from './payment.service';
|
||||
import { PaymentController } from './payment.controller';
|
||||
import { PaymentDataAccess } from 'src/dataAccess/payment.dataAccess';
|
||||
import { PaymentGateway } from '../IPG/PaymentGateway';
|
||||
import { ZarinPalGateway } from '../IPG/gateways/zarinpal';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
UserModule,
|
||||
],
|
||||
controllers: [PaymentController],
|
||||
providers: [
|
||||
ZarinPalGateway,
|
||||
PaymentDataAccess,
|
||||
PaymentGateway,
|
||||
PaymentService,
|
||||
UserDataAccess,
|
||||
],
|
||||
exports: []
|
||||
})
|
||||
export class PaymentModule { }
|
||||
Reference in New Issue
Block a user