asterisk2billing.org
http://forum.asterisk2billing.org/

Access Denied
http://forum.asterisk2billing.org/viewtopic.php?f=22&t=8280
Page 1 of 1

Author:  malupaul [ Fri Oct 22, 2010 4:54 am ]
Post subject:  Access Denied

Hi A2b's

I am using A2Billing version 1.7.1

I setup to activate the card immediatly after signup (from config). In signup_confirmation.php, I placed a button to go ahead to checkout_payment.php, so that the user can go ahead and make the payment instead of relogin. It worked for few days and were able to go all the way to paypal payment and people made payment.

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?

Only thing I might have done is switching to enable SSL, but once I see the error I changed it back but it still giving the access denied error.

Also I setup logfile path in system Settings to /var/log/a2billing/ But somehow I cannot see any log files created. Why is it?

Any help is highly appreciated.

Thanks

Author:  vulcan [ Sat Jul 16, 2011 1:47 pm ]
Post subject:  Re: Access Denied

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"]);

Author:  jroper [ Sun Jul 17, 2011 6:22 am ]
Post subject:  Re: Access Denied

Hi

You should not have to change this - we have a large number of installations where Paypal works fine on 1.9.4 with no modifications.

Can you confirm that the URL you are using to login is the same as those you have put into the system settings under epayments.

Joe

Author:  vulcan [ Sun Jul 17, 2011 10:38 pm ]
Post subject:  Re: Access Denied

Quote:
Can you confirm that the URL you are using to login is the same as those you have put into the system settings under epayments.


Checked and this seems to be the issue and not as noted in post above.

The definitions under epayments have the URL with the "www." and whenever one logs in to their account without the www. prefix on the URL, it logs off when attempt is made to checkout.

One solution then is to always redirect to www. from the index page before logon and define epayments settings with the www.

Thanks.

Paul

Author:  anmolrani777 [ Mon Feb 23, 2015 3:49 pm ]
Post subject:  Re: Access Denied

logs out when customer clicks on paypal button and proceed to checkout and they have to log back in to proceed.






_____________________________________
**SignaturE**

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/