-
Notifications
You must be signed in to change notification settings - Fork 3
BP-4301 Payment is in test mode = incorrect #345
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
Comments
@GokhanAltan1 do you have more info on this? We cannot reproduce it at this point. Maybe a screenshot could help here. Same as PHP version, Wordpress version. |
It looks like you're using the legacy WordPress post storage, as this test mode message is currently only supported there. That said, I’ve identified the root cause of the issue. When parsing the response from the Return or Push URL, the payload is parsed with all values as strings. In this case, we get If you want to apply a quick fix on your end, you can update the following methods to properly parse the boolean values using File: public function isTest(): bool {
return filter_var($this->get('IsTest'), FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
} File: public function isTest(): bool {
return filter_var($this->get('brq_test'), FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
} Using Even though this is only a visual issue, we plan to fix it properly in the next release (most likely on Tuesday), where we’ll also add support for this message in HPOS |
Thank you very much. I will wait for the new release of this plugin. |
Thanks for the solution! |
Hi @GokhanAltan1 & @Stannistor , A fix has been implemented in version 4.1.0 of the plugin. Thanks for your patience. |
Hello,
after updating the plugin to the latest version 4.0.3 I see this message in my woocommerce orders: The payment for this order was made in test mode. But the payments are all in live mode. Is this some kind of a bug in this version?
The text was updated successfully, but these errors were encountered: