Closed davidfilat closed 3 years ago
@davidfilat detailed logs would be helpful in this case.
Desigur:
@alexminza
Can you also check the browser console logs and network requests?
As you can see here https://github.com/alexminza/wc-moldovaagroindbank/blob/master/wc-moldovaagroindbank.php#L721 a redirect to the bank payment page is returned so the browser must execute it.
Additionally, you could add a debug log before the return
statement to check the generated redirect url:
$this->log($redirect);
Thank you for the advice! The payment works and the orders are marked as complete, but the problem remains that the client is redirected to this page after checkout, which return a 404 error code.
@davidfilat this return URL is being generated by the system based on your WooCommerce settings.
Check the WooCommerce Settings - Advanced page:
/wp-admin/admin.php?page=wc-settings&tab=advanced
Reference:
This issue was related to WPML plugin.
I setup the plugin correctly and the payments get through, but after a payment the user is redirected to the cart and the order's status is "Pending Payment", though it received a OK status code from the bank. What might be causing this problem?