Implement complete payment processing module following DDD + CQRS patterns: - Domain layer: PaymentEntity aggregate, Money value object, domain events - Infrastructure: PrismaPaymentRepository, VnpayService, MomoService, ZalopayService - PaymentGatewayFactory pattern for provider abstraction - CQRS Commands: CreatePayment, HandleCallback, RefundPayment - CQRS Queries: GetPaymentStatus, ListTransactions - Callback/webhook endpoints with signature verification and idempotency - 23 unit tests covering domain, VNPay service, and gateway factory Co-Authored-By: Paperclip <noreply@paperclip.ing>
15 lines
475 B
TypeScript
15 lines
475 B
TypeScript
export {
|
|
PAYMENT_GATEWAY_FACTORY,
|
|
type IPaymentGateway,
|
|
type IPaymentGatewayFactory,
|
|
type CreatePaymentUrlParams,
|
|
type CreatePaymentUrlResult,
|
|
type CallbackVerifyResult,
|
|
type RefundParams,
|
|
type RefundResult,
|
|
} from './payment-gateway.interface';
|
|
export { PaymentGatewayFactory } from './payment-gateway.factory';
|
|
export { VnpayService } from './vnpay.service';
|
|
export { MomoService } from './momo.service';
|
|
export { ZalopayService } from './zalopay.service';
|