I am new to paypal and use sanbox.
I'm trying to implement the paypal payment platform on an online sales page and I get an error; When creating an app in developer paypal (generates my client id and its normal secret) and use it on the page I get the following error;
PayPalConnectionException in PayPalHttpConnection.php line 154:
Got Http response code 401 when accessing https://api.sandbox.paypal.com/v1/oauth2/token.
But if I use a public credentials (taken from the internet) if it works and I redirect to paypal correctly ..
What am I doing wrong? I need something to check
Thanks in advance