There is no way something like this could happen. The order has to be created before the payment is processed.
The webhook comes after the transaction to update the order state.
ORDER -> INITIALIZES TRANSACTION -> PAID/ABANDONED/! -> SENDS WEBHOOK -> UPDATES ORDER STATE.
Come to terms with the fact that thereβs very little left to build that hasnβt been built in some form.
The real opportunity lies in finding better ways to solve existing problems.
Stop thinking in apps. Start thinking in solutions.
That shift in mindset takes you from:
βSomeone has already built my app.β
To:
βHow can I solve this problem better than anyone else?β
You donβt need a new idea. You need a better approach to an existing problem.
"When a rich man is sick, the poor man goes to check on him and wish him a speedy recovery. When the poor man falls sick, he waits until he is better, then he goes to inform the rich man."
"If you see a poor man eating his chicken, it's that he is sick or the chicken is sick"