Lock the order before stripe.confirmPayment() is called

Created on 7 January 2025, 3 months ago

Hello,

We need to lock the order when the customer clicks on the payment button before the stripe.confirmPayment() is called. For security reasons, I will not write more stuff about why this needs to be done and why it is a critical bug.
Legit maintainers can email me for more details if need be.

On our website, we created an ajax callback that does this:

$order->lock();
$order->setRefreshState(OrderInterface::REFRESH_SKIP); // this is to avoid OrderRefresh::refresh to be called on save
$order->save();
🐛 Bug report
Status

Active

Version

1.2

Component

Payment Element

Created by

🇫🇷France nicolas bouteille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024