Avoid resending Processing Order customer email when merchant wins dispute #3674
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #3603
Changes proposed in this Pull Request:
When the merchant wins a dispute, the order gets its pre-dispute status back. In some cases, the order goes back to
processing
, which causes the "Your order has been received" email to be sent to the customer again. We've received feedback that this causes confusion to the customer, who just lost a dispute and may not be very happy to begin with.This PR adds logic to avoid resending the "Processing Order" email for the above-described scenario.
Testing instructions
4000000000000259
as the CC number, and complete the purchase.on-hold
.Your <Store Name> order has been received
customer email.winning_evidence
in the textbox.processing
.develop
, theYour <Store Name> order has been received
email has been resent.changelog.txt
andreadme.txt
(or does not apply)Post merge