59 Commits

Author SHA1 Message Date
a929d89fb3 otimizado para funcionar sem limites de cpu e ram 2025-08-17 14:55:53 -04:00
e2c7dd647d Increase payment processor request timeout to 2500ms 2025-08-17 04:31:12 -04:00
fe06faf0e8 Remove unused repository and related code from fallback processor 2025-08-17 04:31:07 -04:00
f229d31398 Set max database connections to 5 in config 2025-08-17 04:31:01 -04:00
95af8deae8 Use query to insert payment and handle conflicts 2025-08-17 04:30:39 -04:00
b7ebc29af4 Increase payment processor concurrency and add error logging 2025-08-17 04:30:34 -04:00
8ab96b8292 Handle duplicate payment and log processor errors 2025-08-17 04:30:30 -04:00
7d1d01310a Increase payment job attempts and backoff delay 2025-08-17 04:30:26 -04:00
5d268e8a5d Refactor payment processing services to use CreatePaymentDto and simplify job handling 2025-08-12 09:09:43 -04:00
96b1e8cd80 Refactor payment processing services to use CreatePaymentDto and simplify job handling 2025-08-12 09:09:37 -04:00
434f03f6c6 Refactor payment processors to use CreatePaymentDto and streamline payment execution logic 2025-08-12 09:09:31 -04:00
3c2c43106a Refactor payment entity to use correlationId as primary key and remove unused fields 2025-08-12 09:09:25 -04:00
4c8b331be0 Refactor database module to disable synchronization in production 2025-08-12 09:09:19 -04:00
ddaa57d96d Refactor app module to remove unused HealthModule import 2025-08-11 23:54:09 -04:00
68fc4c2f99 Refactor payments module to remove unused imports and streamline dependencies 2025-08-11 23:54:04 -04:00
7773a4f45e Refactor payment processing to utilize PaymentJobData and streamline execution logic 2025-08-11 23:53:58 -04:00
d28c9897da Refactor payment storage to remove unnecessary status assignment and include creation timestamp 2025-08-11 23:53:53 -04:00
bad88f2016 Refactor payment execution to use PaymentJobData for improved data handling 2025-08-11 23:53:45 -04:00
2ab9284c85 Refactor payment processors to improve concurrency and streamline payment execution 2025-08-11 23:53:12 -04:00
7d5827871d Refactor payment job handling to simplify retry logic and update job parameters 2025-08-11 23:53:04 -04:00
b2273181b9 Refactor payment job handling to simplify retry logic and update job parameters 2025-08-11 23:52:50 -04:00
717046120c Update README.md to reflect project name and features 2025-08-11 23:52:39 -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
439ce1bff3 Add MakePaymentToProcessorService for handling payment processing 2025-08-10 00:55:09 -04:00
2ff84a8450 Add HealthModule to the application module 2025-08-09 22:37:29 -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