Are there any suggestions on how to handle the scenario of duplicate payment in Magento?
if a user initiates a payment on the first tab but does not pay the shopping cart,
and then open a duplicate tab to initiate a payment for the same shopping cart(add or reduce items) and complete the payment,
If the user returns to complete the payment on the first tab, it will lead to payment twice.
Thank you and looking forward to hearing from you!
On checkout, Magento will recheck cart_id according to the current user, so I think your case is not realistic.
In case cart_id does not exist or was ordered by tab 1, Magento will report an error about the cart when you click on the checkout button
In the case of still being able to check out, I think it has something to do with the payment module you are using.