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
Related
I'm using windows, xampp and fairly new on integrating docusign. I watched this tutorial from docusign using PHP, however since the tutorial is using mac, I'm getting confused on how I will setup this tutorial on my xampp and windows and the result is I'm getting the error:
The redirect URI is not registered properly with DocuSign
Here is how I did my setup
1.) Clone the repository and place it on my xamp/htdocs/eg-something-something
2.) Rename the ugly repository name to xamp/htdocs/docusign/
3.) Run composer install to get the dependencies
4.) I configured my ds_config.php and here is my code... I removed credentials for security purposes
<?php
// ds_config.py
//
// DocuSign configuration settings
$DS_CONFIG = [
'ds_client_id' => 'xxxx', # The app's DocuSign integration key
'ds_client_secret' => 'xxx', # The app's DocuSign integration key's secret
'signer_email' => 'xxx#gmail.com',
'signer_name' => 'Michael',
'app_url' => 'http://localhost/docusign/public', // The url of the application.
// Ie, the user enters app_url in their browser to bring up the app's home page
// Eg http://localhost/eg-03-php-auth-code-grant/public if the app is installed in a
// development directory that is accessible via web server.
// NOTE => You must add a Redirect URI of app_url/index.php?page=ds_callback to your Integration Key.
'authorization_server' => 'https://account-d.docusign.com',
'session_secret' => '{SESSION_SECRET}', // Secret for encrypting session cookie content
'allow_silent_authentication' => true, // a user can be silently authenticated if they have an
// active login session on another tab of the same browser
'target_account_id' => false, // Set if you want a specific DocuSign AccountId, If false, the user's default account will be used.
'demo_doc_path' => 'demo_documents',
'doc_docx' => 'World_Wide_Corp_Battle_Plan_Trafalgar.docx',
'doc_pdf' => 'World_Wide_Corp_lorem.pdf',
// Payment gateway information is optional
'gateway_account_id' => '{DS_PAYMENT_GATEWAY_ID}',
'gateway_name' => "stripe",
'gateway_display_name' => "Stripe",
'github_example_url' => 'https://github.com/docusign/eg-03-php-auth-code-grant/tree/master/src/',
'documentation' => false
];
$GLOBALS['DS_CONFIG'] = $DS_CONFIG;
5.) I log into my admin sandbox and use this as my redirect URI
http://localhost/docusign/public/index.php?page=ds_callback
The web app is running but I am having an error of "The redirect URI is not registered properly with DocuSign" when I click the login or just by authenticating.
Thanks for helping me on this issue.
Update part:
I tried adding http:// on the configuration of the integration key on sandbox, however, I'm getting a fatal error:
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL
error 77: error setting certificate verify locations: CAfile:
C:\xampp\apache\bin\curl-ca-bundle.crt CApath: none (see
http://curl.haxx.se/libcurl/c/libcurl-errors.html) in
C:\xampp\htdocs\docusign\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php
on line 186
Once I tried to authenticate. Check this screenshot for the errors.
try http://localhost/docusign/public/index.php?page=ds_callback as the redirect URL.
You need the complete URL including the http:// part.
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.
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
This is happening in our local web server installed using XAMPP
Steps to reproduce the issue:
Registered the account with Janrain.com
Created the app "testapp" and configured the engage application with the
providers Yahoo!, Twitter and Linked In.
Downloaded the Janrain Engage Drupal 7 module from the Janrain website
Installed this module in my local web application.
Activated the plugin and in the Janrain Drupal settings page, I entered the following details - a) Engage Server & b) API Key
After giving these details, clicked on the "Save Configuration" button. Finally, instead of the information being saved, we get the error message
"Error message Error contacting Engage. Please verify your internet connection and try again."
I tried to look in to the code, the below line was creating the issue
$lookup = RPX::lookup($api_key, $rpx_server);
Checked the "lookup" function code and found that I was able to connect with the Engage server but some problem with the response.
In this "lookup" function, we are getting the below JSON response
stdClass Object
(
[request] => POST https:// rpxnow.com /plugin/lookup_rp HTTP/1.0
Referer: http:// localhost /testapp
User-Agent: Janrain_Engage_Drupal_Module
Proxy-Authorization: Basic
Host: rpxnow.com Content-Length: 105 [data] => "" [protocol] => HTTP/1.0 [status_message] => OK [code] => 200)
9) Found that "data" facet in the JSON response was missing
Please let me know what is the solution for this issue?
This sounds like a web server configuration issue... the drupal_http_request() function is probably failing to run. There may be any number of fixes depending on what is specifically happening. More info here: https://drupal.org/node/222454
We are trying to make a transaction using the paypal API for do direct.We encounter the following error when we submit the details.Went through various links and questions,and everyone suggested to activate the Website Payments Pro for example here.
But,if I check my account there is no such section on the left and neither do I have Website Payments Pro option anywhere.
PayPal API Error
The PayPal API has returned an error!
TIMESTAMP: 2013-04-03T06:36:34Z
CORRELATIONID: d0f6f7281495d
ACK: Failure
VERSION: 98.0
BUILD: 5479129
L_ERRORCODE0: 10501
L_SHORTMESSAGE0: Invalid Configuration
L_LONGMESSAGE0: This transaction cannot be processed due to an invalid merchant configuration.
L_SEVERITYCODE0: Error
AMT: 200.00
CURRENCYCODE: USD
I am not sure if there is any other solution,so would like any help from the members on it.Currently working with a sandbox account for testing.API version I am working on is 98.0
This error means that Website Payments Pro is not enabled. I have modified the account and added pro on to it. Please try running another test and see if it goes through now.