Add email notifications for economically unviable refunds #88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/economically-unviable-refund-emails"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enhanced the refund email system to properly notify users when their
cryptocurrency refunds cannot be processed due to being economically
unviable (too small to cover network transaction fees).
Changes:
and "economically unviable" scenarios with appropriate messaging
transitions due to economic viability:
Users now receive clear explanations when refunds are too small to send
rather than being left without notification.
Summary by CodeRabbit
Walkthrough
Adds refund-related email notifications across crypto refund paths, builds shop-context email requests (using DummyRequest when needed), wraps email sends in try/except with logging, and updates NOT_REFUNDED email content to reflect “economically unviable” refunds with adjusted subject/message.
Changes
make_post_sell/lib/crypto_watcher/__init__.pyemail_request(includingDummyRequestfrompyramid.testingwhen no live request), calls mailer, and wraps sends in try/except with logging. Adds passive-monitoring email notifications for economically unviable refunds without changing state transitions.make_post_sell/lib/mail.pysend_refund_email, when status isNOT_REFUNDEDandcrypto_payment.refund_reasoncontains “economically unviable”, changes subject to “Refund Too Small” and includes a message referencingreceived_amount; otherwise retains prior messaging and behavior.Sequence Diagram(s)
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~60 minutes
Poem
Comment
@coderabbitai helpto get the list of available commands and usage tips.changed the description
added 1 commit
125d8726- Remove support contact message from economically unviable refund emailsCompare with previous version
changed the description
added 1 commit
7ff744e0- Remove all 'contact support' references from refund emailsCompare with previous version
mentioned in commit
b0dc15b06a