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 webhooks sending multiple times for a single order #168

Merged

Conversation

PeppyH
Copy link
Contributor

@PeppyH PeppyH commented Sep 9, 2020

This pull request adds a boolean field to an order upon sending a webhook after an order is processed and user returns from the third party payment platform to solve #167 on page load this field is checked prior to calling the webhook function.

Feel free to add criticism or advice, happy to make some more changes if there is a better solution to this problem.

@PeppyH PeppyH changed the title fix: update db record for order to reflect hook has been sent + check… Fix webhooks sending multiple times for a single order Sep 9, 2020
@mrvautin
Copy link
Owner

mrvautin commented Sep 9, 2020

Good find!

@mrvautin mrvautin merged commit 0b91a0b into mrvautin:master Sep 9, 2020
@PeppyH PeppyH deleted the limit-order-webhook-to-once-per-order branch September 9, 2020 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants