Skip to content

[BUGFIX] Send the order emails only once - #45

Merged
d-g-codappix merged 1 commit into
mainfrom
double-order-email
Nov 22, 2026
Merged

d-g-codappix merged 1 commit into
mainfrom
double-order-email

Conversation

@d-g-codappix

Copy link
Copy Markdown
Collaborator

The customer is redirected back from Girosolution while Girosolution sends the notification. Both requests read the status of the payment before one of them has stored the new status, so both dispatched the FinishEvent and the order emails were sent twice.

The status of the payment is changed with an update which expects the status the payment had when it was loaded. Only the request which changes the status dispatches the FinishEvent or CancelEvent. A status set by another request is not overwritten, an error is logged instead.

Resolves: #13

The customer is redirected back from Girosolution while Girosolution
sends the notification. Both requests read the status of the payment
before one of them has stored the new status, so both dispatched the
FinishEvent and the order emails were sent twice.

The status of the payment is changed with an update which expects the
status the payment had when it was loaded. Only the request which
changes the status dispatches the FinishEvent or CancelEvent. A status
set by another request is not overwritten, an error is logged instead.

Resolves: #13

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d-g-codappix
d-g-codappix merged commit f3ff081 into main Nov 22, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double email order confirmation

1 participant