Language: Java. The pull request has one bug. You get three tries to find the line, then a short debrief.
Checkout held a database transaction open while it waited for the payment provider: up to five seconds with the stock rows locked, and under load other orders waited behind those locks. The PR moves the transaction to the part that actually writes: saving the order and reserving its items.
Codetrap needs JavaScript: the code review happens in your browser.