Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicated orders #66

Open
jimmyn opened this issue Nov 18, 2024 · 0 comments
Open

Fix duplicated orders #66

jimmyn opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels

Comments

@jimmyn
Copy link
Collaborator

jimmyn commented Nov 18, 2024

On the checkout page, we generate an order and assign a unique order ID to the payment. When we receive a callback, we retrieve the order ID from the payment, locate the corresponding order, and update its status. How could this process lead to the creation of a new order? We should only update the existing order and never create a new one. The order ID is unique, and an order is generated only once on the checkout page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants