98 Commits

Author SHA1 Message Date
4e5350faab Update docker-compose configuration for resource limits and image usage 2025-08-11 13:14:48 -04:00
3bad475df6 Add attempts column to payment table for tracking retries 2025-08-10 21:07:34 -04:00
471fb2328d Reduce test payment iterations from 1000 to 100 for performance improvement 2025-08-10 21:07:26 -04:00
f0c7df6f6e Simplify nginx configuration by removing unused directives and reducing complexity 2025-08-10 21:07:16 -04:00
2bb71ef5a1 Update payment status and increment attempts on processing error 2025-08-10 21:06:27 -04:00
397fc866ec Refactor payment processor type checks to use enum values 2025-08-10 21:06:11 -04:00
474dc1af56 Remove logging for payment processor error responses 2025-08-10 21:03:52 -04:00
43391fc938 Remove logging for payment processing attempts in payment processor 2025-08-10 21:03:20 -04:00
4d061dab3e Add attempts column to payment entity for tracking payment attempts 2025-08-10 21:03:14 -04:00
012563f252 Filter payments by attempts in PaymentsCron service 2025-08-10 21:03:07 -04:00
081cbb3410 Reduce health check timeout and remove logging for health check status 2025-08-10 21:02:58 -04:00
ebe84fc757 Add error handling for payment processor response in MakePaymentToProcessorService 2025-08-10 01:44:10 -04:00
6b5bdf1448 Add PaymentsCron service to handle periodic payment processing 2025-08-10 00:56:05 -04:00
d0d58e220d Refactor PaymentFallbackProcessor to utilize MakePaymentToProcessorService for payment execution 2025-08-10 00:56:01 -04:00
f0c95308b0 Refactor PaymentDefaultProcessor to use MakePaymentToProcessorService for payment processing 2025-08-10 00:55:56 -04:00
507c774b23 Add PaymentsSummaryService and MakePaymentToProcessorService to PaymentsModule 2025-08-10 00:55:48 -04:00
7f9b03aafa Add PaymentsSummary endpoint to PaymentsController for retrieving payment summaries 2025-08-10 00:55:43 -04:00
1ebfc609f7 Refactor ProcessPaymentService to remove RetryPaymentService dependency and streamline payment processing logic 2025-08-10 00:55:37 -04:00
ebf16c1c24 Refactor ProcessPaymentService to remove RetryPaymentService dependency and streamline payment processing logic 2025-08-10 00:55:31 -04:00
a961414e93 Add PaymentsSummaryService for summarizing payment data 2025-08-10 00:55:28 -04:00
b5d6b4b605 Add blank line for improved readability in docker-compose.yml 2025-08-10 00:55:17 -04:00
051fabf5bb Add test-payments.sh script for simulating payment requests 2025-08-10 00:55:12 -04:00
439ce1bff3 Add MakePaymentToProcessorService for handling payment processing 2025-08-10 00:55:09 -04:00
2bd2d6a5cc Add @nestjs/schedule package and update dependencies in package.json and yarn.lock 2025-08-09 22:37:34 -04:00
2ff84a8450 Add HealthModule to the application module 2025-08-09 22:37:29 -04:00
c9e5fa8c2c Add status and error_message fields to payment_processor table 2025-08-09 22:37:17 -04:00
31edb2cc37 Update default payment processor URL in configuration 2025-08-09 22:37:11 -04:00
6484d0afb4 Add QueueService for managing payment jobs in the payment processing queue 2025-08-09 22:36:59 -04:00
1116181d8c Refactor QueueModule to use PAYMENT_QUEUE constant and update Redis connection settings 2025-08-09 22:36:55 -04:00
f692877e07 Add PAYMENT_QUEUE constant for payment processing queue 2025-08-09 22:36:52 -04:00
f6b560bf86 Refactor Payments module structure and update controller to use new service paths 2025-08-09 22:36:46 -04:00
8d6a8f75ea Add PaymentsService, ProcessPaymentService, and RetryPaymentService for payment processing logic 2025-08-09 22:36:37 -04:00
04b874a3a2 Refactor import paths for PaymentsService to improve module organization 2025-08-09 22:36:31 -04:00
fefa4e2995 Add payment processors for handling payment processing logic 2025-08-09 22:36:26 -04:00
825cdca4a6 Add enums for PaymentStatus and ProcessorType 2025-08-09 22:36:19 -04:00
b6ef03c54d Add status and errorMessage fields to Payment entity 2025-08-09 22:36:13 -04:00
f7f17a07bd Refactor CreatePaymentDto for consistent formatting 2025-08-09 22:36:07 -04:00
aa6860f5d6 Add HealthModule to encapsulate health-related services and dependencies 2025-08-09 22:35:59 -04:00
198563f330 Add unit tests for HealthService 2025-08-09 22:35:52 -04:00
1e629442c3 Add HealthService to perform health checks on payment processors 2025-08-09 22:35:45 -04:00
09e57026fd Add ServiceStatusEnum to define service status states 2025-08-09 22:35:39 -04:00
c50f9c5c4e Add entrypoint script and update docker-compose for service configuration 2025-08-03 21:19:59 -04:00
62f32b830a Add payment module with DTOs, entity, controller, and service 2025-08-03 20:58:56 -04:00
4284ecfca4 Add payment module with DTOs, entity, controller, and service 2025-08-03 20:58:50 -04:00
48c9a6a016 Add configuration, database, and queue modules for application setup 2025-08-03 20:58:42 -04:00
a99d78c4df Initialize NestJS application with core modules, configuration, and basic setup 2025-08-03 20:58:31 -04:00
1d2fdd470b Add unit and e2e tests for PaymentsController, PaymentsService, and AppController 2025-08-03 20:58:02 -04:00
86798bfd42 Add initial Docker setup with API services, database, and Nginx configuration 2025-08-03 20:57:38 -04:00