Codeum.
PracticeProgressCommunity
Sign In
Exit Challenge
Debug~ 6 MinIntermediate
Debugging

The payment that charged twice.

A checkout request is being processed more than once. Fix the trigger so createPayment only runs from the user action.

Runs In Your Browser
DebugIntermediate

A checkout request is being processed more than once. Fix the trigger so createPayment only runs from the user action.

Read the existing code. Change only what is necessary to solve the actual problem.

Expected approach

Predict how the code behaves, then verify it.

challenge.js
JavaScript•0 attempts
1
2
3
4
5
6
7
8
9
10
Ctrl/⌘ + Enter to submit