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

IPN callback sets custom order statuses to failed #59

Open
alovitsm opened this issue Oct 14, 2022 · 0 comments
Open

IPN callback sets custom order statuses to failed #59

alovitsm opened this issue Oct 14, 2022 · 0 comments

Comments

@alovitsm
Copy link

We use custom order statuses to follow the progress of fulfilment. If a customer has tried to pay twice and only succeeded on the second try, the first payment callback sets the status to failed even if the second payment was successful (or the customer chose another method).

In WC_Gateway_Barion_IPN_Handler::check_barion_ipn(), line 42 only evaluates if a status is processing or completed. Maybe it'd be better to do !$order->has_status(array('pending')) instead of $order->has_status(array('processing', 'completed')) to resolve this for those who use custom statuses.

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

No branches or pull requests

1 participant