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

Fixes a bug when the IPN/webhook is received with "complete" status. #66

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

shaunek-hero
Copy link
Contributor

When the "complete" IPN message was coming through this code would throw a RuntimeException with "Wrong BitPay status..." message, this is because this code was looking for a status "completed" instead of "complete".

Possibly the original developer might have gotten mixed up because Woocommerce order status is named "completed" but the BitPay invoice status is named "complete" which is very similar.

When the "complete" IPN message was coming through this code would throw a RuntimeException with "Wrong BitPay status..." message, this is because this code was looking for a status "completed" instead of "complete".

Possibly the original developer might have gotten mixed up because Woocommerce order status is named "completed" but the BitPay invoice status is named "complete" which is very similar.
@bobbrodie
Copy link
Contributor

This is fantastic @shaunek-hero , thank you so much! We'll test this out in the morning and prep version 5.3.2 for release.

@bobbrodie bobbrodie merged commit 7ed4093 into bitpay:master Jan 10, 2024
3 checks passed
@shaunek-hero shaunek-hero deleted the bugfix/incorrect-status-name branch January 10, 2024 21:30
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.

3 participants