Fix: Adding check for duplicate transaction
This commit is contained in:
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## [0.27.2] - 2026-09-29
|
||||
### Fixed
|
||||
- `Modules\Core\Order\Services\TransactionRecorder::record()` — made idempotent
|
||||
on `(order_id, type, reference)`. A successful Stripe payment can legitimately
|
||||
report `PaymentCaptured` twice for the same PaymentIntent (checkout's
|
||||
synchronous capture via `pay()`, then the webhook confirming the same
|
||||
outcome asynchronously via `handleCallback()`), both routing through
|
||||
`resultFromIntent()`. With no dedupe check, this wrote two identical
|
||||
`Transaction` rows for one real payment. Now returns the existing row
|
||||
instead of creating a duplicate.
|
||||
|
||||
## [0.27.1] - 2026-09-29
|
||||
### Added
|
||||
- Temp logger for Stripe webhook
|
||||
|
||||
Reference in New Issue
Block a user