adyen-magento2 icon indicating copy to clipboard operation
adyen-magento2 copied to clipboard

[ECP-9553] Payment Captured for Failed order.

Open SamJUK opened this issue 1 year ago • 5 comments

Describe the bug Two orders were placed via Apple Pay with near identical timings (a sub-second delta), one successfully placed and passed the customer through to the success page.

The other was rejected due to a Unique constraint violation on the increment_id and returned a 400 status on the /payment-information request. Leaving them on the checkout page, and the order was never created in Magento. After receiving the payment notification from their bank, they closed the site and never attempted to replace the failed order.

  • Both orders were captured in Adyen, with the same Merchant ID.
  • Adyen notification logs shows both PSP coming in with the same Merchant ID & the same UID.
  • The phantom order pushed its webhook notifications to the Merchant ID, despite the order belonging to a different customer.

Screenshot 2024-10-31 at 15 02 06

Expected behaviour Adyen not to capture payment for an order which fails the /payment-information post request or to cancel the payment it previously captured.

Magento version 2.4.6-p8

Plugin version 9.9.1

SamJUK avatar Oct 31 '24 15:10 SamJUK