Fix localhost domain issue in economically unviable refund emails #89

Merged
russellballestrini merged 1 commit from fix/localhost-domain-in-refund-emails into master 2025-10-03 17:57:13 -04:00

1 commit

Author SHA1 Message Date
94c6b65cd2 Fix localhost domain issue in economically unviable refund emails
Updated economically unviable refund email notifications to use
create_shop_context_request() instead of passing env_request directly
or creating DummyRequest objects. This ensures emails are sent from
the proper shop domain instead of localhost.

Fixed in:
- Expired payment processing (line ~2147)
- Underpayment processing (line ~2911)
- Passive monitoring refund retries (line ~3290)

Note: Duplicate payment processing was already correct.
2025-10-03 17:51:43 -04:00