Description
Implement Stripe invoice PDF generation and email delivery so that users automatically receive invoice PDFs upon subscription renewal, supporting their accounting and record-keeping needs.
Requirements and Context
- Correctness: Invoices must be generated and delivered on renewal
- Testing: Test invoice generation and delivery
- Documentation: Document the invoice delivery flow
Suggested Execution
Branch: feat/issue-123-stripe-invoice-pdf-delivery
Implement Changes
- Hook into the Stripe invoice.paid webhook to trigger PDF delivery
- Retrieve the invoice PDF from Stripe
- Email the invoice PDF to the customer
- Handle delivery failures with retry
Test and Commit
- Test invoice PDF retrieval and email delivery
- Test delivery failure retry
- Document the invoice delivery flow
Example Commit Message
feat(payments): add Stripe invoice PDF generation and email delivery
- Trigger PDF delivery on invoice.paid webhook
- Retrieve invoice PDF from Stripe
- Email PDF to customer with retry on failure
Guidelines
- Use Stripe's hosted invoice PDFs
- Handle email delivery failures with retry
- Verify webhook signatures before processing
Description
Implement Stripe invoice PDF generation and email delivery so that users automatically receive invoice PDFs upon subscription renewal, supporting their accounting and record-keeping needs.
Requirements and Context
Suggested Execution
Branch:
feat/issue-123-stripe-invoice-pdf-deliveryImplement Changes
Test and Commit
Example Commit Message
Guidelines