[BUG] Order gets created even if paypal redirect fails
Author: kaysondCreated Oct 2, 2023Updated Sep 22, 2026
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Use incorrect paypal api keys
- Complete an order using paypal
Expected behavior Order should not get added to db
Screenshots If applicable, add screenshots to help explain your problem.
Background (please complete the following information):
- NodeJS Version - 20.7.0
- Postgres Version - 15.4
- EverShop Version - rc7
- OS: [e.g. Window, Ubuntu, Mac-OS] - Debian
- Browser [e.g. Chrome, Safari] - FF
Additional context This is problematic because it creates pending orders that reduce stock but can never be paid for
Source: evershopcommerce/evershop