Commit graph

25 commits

Author SHA1 Message Date
a09fa0597d fix: update PDF filename format to replace spaces with dashes and enhance Puppeteer service configuration 2026-03-10 12:36:11 +01:00
09479eb9f2 fix: update PDF filename format in ReceiptGenerator and whIntentSucceededHandler to include customer name and date 2026-03-10 11:28:52 +01:00
237ecec27e feat: add email notification for new payment received with PDF receipt attachment 2026-03-09 18:30:54 +01:00
a8d29c6840 feat: refactor ordini and servizio controllers to use services, remove old controller files 2026-03-08 14:34:21 +01:00
6c36bb9b74 feat: add order editing form and payment processing pages
- Implemented FormEditOrder component for editing orders with validation and submission handling.
- Created SchedaAnnuncioPage for displaying printable announcement details.
- Added BonificoManualePage for manual bank transfer payment instructions.
- Developed PagamentoPage for Stripe payment processing with PaymentIntent creation.
- Introduced PreviewPurchasePage for preparing payment with service details.
- Added pagamenti.controller for handling payment preparation and retrieval of payment data.
2026-03-08 01:02:57 +01:00
8d89be35d5 feat: enhance error handling with custom messages for database operations 2026-03-05 10:29:08 +01:00
c423a7bdb7 a 2026-03-04 20:45:21 +01:00
b500c7133f feat: integrate email event queue for payment confirmation with attachments 2026-03-04 20:22:17 +01:00
280e0ab5c2 feat: update payment recap links and add new receipt page
- Changed payment recap link in OrdiniModal to point to the new receipt page.
- Added new PaymentRecapPage for displaying receipt details.
- Updated PaymentsTable to set paid_at date based on payment status.
- Introduced manual payment type in PaymentType and updated related strings.
- Refactored getOrdineRicevutaData to use overridableProcedure for access control.
- Enhanced mail sending functionality to include PDF attachments for receipts and conditions.
- Updated PDF generation service to handle new receipt PDF generation.
- Cleaned up context checking utilities by removing unnecessary session checks.
2026-03-04 19:12:01 +01:00
5f5aa18b87 refactor: remove unused pm_id parameter from whIntentCreatedHandler and related functions 2026-02-24 14:43:28 +01:00
baf92787a7 fix: log event data for payment_intent.created in stripe webhook handler 2026-02-24 14:06:47 +01:00
4ec060c14d save payment method on intent creation wh received 2026-02-20 11:52:14 +01:00
89248e3787 refactor: clean up unused console logs and streamline Stripe integration 2026-02-20 11:42:46 +01:00
52801bebd1 feat: refactor payment processing and checkout flow with Stripe integration
- Removed AcquistoProcessing component and replaced it with a new CheckoutForm component for better separation of concerns.
- Added new payment checkout page to handle payment intents and display payment status.
- Updated server-side logic to create payment intents and retrieve payment data for checkout.
- Enhanced error handling and user feedback during payment processing.
- Introduced new utility functions for fetching payment data and managing Stripe integration.
2026-02-20 11:36:47 +01:00
210ee3a9f2 feat: update Stripe integration and add settings page with health check 2026-01-14 12:02:03 +01:00
e5c0ca04ee feat: add PDF generation and email sending for printable announcements
- Updated package.json to include html2canvas-pro and jsPDF for PDF generation.
- Enhanced SchedaAnnuncioStampabile component to generate a PDF from HTML and send it via email.
- Implemented new API endpoint for sending the generated PDF as an email attachment.
- Refactored existing email sending logic across various controllers to use a unified template structure.
- Improved error handling and logging for email sending processes.
2025-11-19 17:18:28 +01:00
b84c98c334 refactor: replace baseUrl prop with env.BASE_URL in email components 2025-10-20 17:27:32 +02:00
8a17863c85 feat: update environment variable handling for BASE_URL and NEXT_PUBLIC_BASE_URL across Docker and application files 2025-10-20 16:39:59 +02:00
699579b432 feat: update environment variable handling and dependencies
- Added @t3-oss/env-nextjs for improved environment variable management.
- Updated zod to version 4.1.12 for enhanced validation capabilities.
- Upgraded jiti to version 2.6.1 for better module loading.
- Refactored environment variable imports from env.mjs to env.ts.
- Removed deprecated env.mjs file and replaced it with a new env.ts file using @t3-oss/env-nextjs.
- Adjusted various components and API routes to utilize the new environment variable structure.
- Updated next.config.js to support the new environment variable management.
- Modified Docker configuration to align with new BASE_URL handling.
2025-10-20 16:22:20 +02:00
07767dd51b fix: update environment variable handling and add baseUrl prop to email components for improved functionality 2025-10-20 12:33:49 +02:00
be0cd554a6 fix: update payment ID reference in createIntentHandler for correct query execution 2025-09-05 16:59:52 +02:00
5755b00d7b formatt 2025-08-29 16:18:32 +02:00
3f82763168 eslint migration biome 2025-08-28 18:27:07 +02:00
babb798505 fix: include user email in payment intent creation for receipt 2025-08-26 17:38:20 +02:00
29c64c7e39 init 2025-08-04 17:45:44 +02:00