Quote:
For the last couple of days, when we click on the button to checkout_payment.php in signup_confirmation.php(which I created), it is giving accessdenied error and asking me to relogin. It looks like has_rights(ACX_ACCESS) is giving false. How can I circumvent this?
In A2B 1.9.4 it also logs out when customer clicks on paypal button and proceed to checkout and they have to log back in to proceed.
I changed some lines in this file and it fixed the problem. The commented lines are the original and the ones below are changed.
../common/lib/epayment/includes/configure.php
Code:
// define('HTTPS_SERVER', $A2B->config["epayment_method"]["http_server"]);
define('HTTPS_SERVER', $A2B->config["epayment_method"]["https_server"]);
define('ENABLE_SSL', $A2B->config["epayment_method"]["enable_ssl"]);
define('HTTP_COOKIE_DOMAIN', $A2B->config["epayment_method"]["http_domain"]);
// define('HTTPS_COOKIE_DOMAIN', $A2B->config["epayment_method"]["http_domain"]);
define('HTTPS_COOKIE_DOMAIN', $A2B->config["epayment_method"]["https_domain"]);
// define('HTTP_COOKIE_PATH', $A2B->config["epayment_method"]["dir_ws_http"]);
// define('HTTPS_COOKIE_PATH', $A2B->config["epayment_method"]["dir_ws_http"]);
define('HTTP_COOKIE_PATH', $A2B->config["epayment_method"]["http_cookie_path"]);
define('HTTPS_COOKIE_PATH', $A2B->config["epayment_method"]["https_cookie_path"]);
// define('DIR_WS_HTTP_CATALOG', $A2B->config["epayment_method"]["dir_ws_http"]);
// define('DIR_WS_HTTPS_CATALOG', $A2B->config["epayment_method"]["dir_ws_http"]);
define('DIR_WS_HTTP_CATALOG', $A2B->config["epayment_method"]["dir_ws_http_catalog"]);
define('DIR_WS_HTTPS_CATALOG', $A2B->config["epayment_method"]["dir_ws_https_catalog"]);