Paypal express checkout error 10007: Permission denied - php

I have integrated the Paypal express checkout in my site and it was working in sandbox mode.
Then i changed it live mode with live credentials.
Now i getting success response,token and payer id after calling 'SetExpressCheckout'
But after i call 'DoExpressCheckoutPayment', iam getting an error
10007: Permission denied
You do not have permissions to make this API call
Array
(
[TIMESTAMP] => 2013%2d08%2d29T04%3a06%3a19Z
[CORRELATIONID] => dd49ea1655d2c
[ACK] => Failure
[VERSION] => 76%2e0
[BUILD] => 7507921
[L_ERRORCODE0] => 10007
[L_SHORTMESSAGE0] => Permission%20denied
[L_LONGMESSAGE0] => You%20do%20not%20have%20permissions%20to%20make%20this%20API%20call
[L_SEVERITYCODE0] => Error
)
What may be the reason for this type of error, any idea ?

Actually the problem was related to Paypal Merchant account.
That account was blocked by Paypal.
Now we created new paypal account and its working fine.Nothing was related to code

Related

Can not get access token in microsoft dynamics in php?

We have created application in Azure active directory.Before that, I have experienced by providing same permissions in Azure directory to get access token. But I could not get it by using same application with same permissions now.
My Request is:
https://login.microsoftonline.com/common/oauth2/authorize?client_id=my_client_id&redirect_uri=https://xxx/msd1/authorize.php&response_type=code
Response
stdClass Object
(
[error] => invalid_grant
[error_description] => AADSTS65001: The user or administrator has not consented to use the application with ID 'client_id'. Send an interactive authorization request for this user and resource.
Trace ID: 6f01144c-4dc0-4911-9923-1cf134d264f0
Correlation ID: f5765d5f-7109-48a3-89f0-2729c15551c3
Timestamp: 2016-05-20 06:09:47Z
[error_codes] => Array
(
[0] => 65001
)
[timestamp] => 2016-05-20 06:09:47Z
[trace_id] => 6f01144c-4dc0-4911-9923-1cf134d264f0
[correlation_id] => f5765d5f-7109-48a3-89f0-2729c15551c3
)
Where i went wrong? Is this permission related problem?
How to get access token for this?
Maybe the account you used to register the application is not with the administrator permission or is not in the same Office 365 subscription (tenant).
We can find the requirement:
Sign in to the Microsoft Azure management portal by using an account with administrator permission. You must use an account in the same Office 365 subscription (tenant) as you intend to register the app with. You can also access the Microsoft Azure portal through the Office 365 admin center by expanding the ADMIN item in the left navigation pane and selecting Azure AD.
Please refer to App registration for CRM Online for details.

Using paypal merchant sdk with curl enabled with NSS

I am using paypal merchant sdk and my curl version goes as
[version_number] => 463623
[age] => 3
[features] => 1597
[ssl_version_number] => 0
[version] => 7.19.7
[host] => x86_64-redhat-linux-gnu
[ssl_version] => NSS/3.14.0.0
[libz_version] => 1.2.3
[protocols] => Array
Because of NSS I am getting error Unknown cipher in list: TLSv1
Many posts suggest making changes to pphttpconfig.php file and remove option CURLOPT_SSL_CIPHER_LIST => 'TLSv1' , do I have any other option which can be used because since I am using composer chaces are there that library get updated and my changes gets overwritten.So how can I make sure that my integration works fine
Possible Duplicate
Paypal SDK Adaptive Payments Unknown cipher in list: TLSv1
I have been working on REST API SDK, which had a similar issue as you are facing. I was able to make the change there, but I didnt get time to fix this. If you feel, you could send me a quick pull request, with pretty much the same fix as the REST one, and I would be more than happy to accept it.

SMTP Email is not working on Joomla

I am using joomla 3.2.0 and configured SMTP email account details in the Global configuration to send an email. I am using Joomla com_contact as a contact form. when I fill the data and submit the form, the email is not triggered.
We are facing this issue in live environemnt. But in staging server is working fine. Both server a re Linux server with CENT OS.
In the live server , I have printed error of email send method below. Please suggest what is the issue ?
Error
JException Object
(
[level:protected] => 8
[code:protected] => 500
[message:protected] => SMTP connect failed
[info:protected] =>
[file:protected] => /var/www/html/mywebsite/libraries/legacy/error/error.php
[line:protected] => 178
[function:protected] =>
[class:protected] =>
[type:protected] =>
[args:protected] => Array
(
)
SMTP account configuration for live and staging server are same. But I am facing an issue in live server only. Can anyone suggest what is the issue ?

Paypal API Security header error

I am using Paypal API Code integration in my project. It is working fine while using Sandbox credentials. Getting error while using Live credentials. Changed Url sandbox to Live. copied exact username, password & signature by using notepad. Still i am getting the same eoor. Can you please tell me if any changes i have to do. Searched in google but not succeded.
tested in multiple servers. getting same error in both servers.
Error : Security header is not valid
Array
(
[TIMESTAMP] => 2014%2d05%2d01T21%3a22%3a22Z
[CORRELATIONID] => da5fb2a0d16b7
[ACK] => Failure
[VERSION] => 76%2e0
[BUILD] => 10800277
[L_ERRORCODE0] => 10002
[L_SHORTMESSAGE0] => Security%20error
[L_LONGMESSAGE0] => Security%20header%20is%20not%20valid
[L_SEVERITYCODE0] => Error
)
Make certain to use your Live PayPal Account Credentials and point all of your endpoints at the live PayPal Server.
User Name:
Password:
Signature:
If you attempt to use your sandbox credentials with a live endpoint you will get security header errors.
I have seen this happen simply because of the credentials not matching with the endpoint.
Here is the going live documentation from the PayPal Developer site:
Going Live PayPal API Developer Documentation
Here is a listing of PayPal Endpoints:
PayPal Endpoints

How to configure a LinkedIn's application in HybridAuth?

I state that I have created an application with LinkedIn and I am in possession of the key and the secret key of the application.
After inserting the key in the configuration file in HybridAuth (config.php) and after trying to log in with my LinkedIn account, HybridAuth returns me the following error:
"Error!
Authentication failed. The user has canceled the authentication or the provider refused the connection.
Original error message: Authentication failed! LinkedIn returned an invalid Token."
What could be the problem?
This is the configuration that concerns LinkedIn:
"LinkedIn" => array (
"enabled" => true,
"keys" => array ( "key" => "************", "secret" => "****************" )
),

Categories