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

Guard against duplicate "Completed Order" calls. #54

Open
sperand-io opened this issue Apr 13, 2015 · 3 comments
Open

Guard against duplicate "Completed Order" calls. #54

sperand-io opened this issue Apr 13, 2015 · 3 comments

Comments

@sperand-io
Copy link
Contributor

Not sure how best to handle just yet. This is especially problematic
for cases where users bookmark their order confirmation page.

@JustinSainton
Copy link
Contributor

Most of the eCom platforms will have a couple options here:

  1. Purchase Meta: You can set a purchase meta flag that denotes that the call has been sent.
  2. Order status transitions: I know for sure that WP eCommerce logs the status (and old status, if one exists). You could send the call conditionally, based on the old status. If there is no "old" status that was "approved" - then you would send the call.

@sperand-io
Copy link
Contributor Author

Thanks so much @JustinSainton! You're the best. @ianstormtaylor and I are syncing on plugin maintenance on Wednesday — we'll follow up after that.

@JustinSainton
Copy link
Contributor

👍

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

No branches or pull requests

2 participants