halldorr
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Feb-12-2018
09:44 AM
Sending a request using the following code:
$api_request = 'USER=' . urlencode('ouruser') . '&PWD=' . urlencode('ourpass') . '&SIGNATURE=' . urlencode('oursignature') . '&VERSION=76.0' . '&METHOD=ManageRecurringPaymentsProfileStatus' . '&PROFILEID=' . urlencode($subId) . '&ACTION=' . urlencode('Cancel') . '&NOTE=' . urlencode( 'Profile cancelled by PSGADMIN' ); $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'https://api-3t.paypal.com/nvp' ); curl_setopt( $ch, CURLOPT_VERBOSE, 1 ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_POST, 1 ); curl_setopt( $ch, CURLOPT_POSTFIELDS, $api_request ); $response = curl_exec( $ch );
Sending using PHP and the response I get back looks likje:
Array ( [TIMESTAMP] => 2018-02-08T15:05:39Z [CORRELATIONID] => 44f5a6f13e3b8 [ACK] => Failure [VERSION] => 76.0 [BUILD] => 39206242 [L_ERRORCODE0] => 10002 [L_SHORTMESSAGE0] => Security error [L_LONGMESSAGE0] => Security header is not valid [L_SEVERITYCODE0] => Error )
I have double and triple checked the credentials we're sending (above I have just said ouruser, ourpass etc) but what could be triggering this error?
Solved! Go to Solution.
10 REPLIES 10
Ayim29
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar-10-2021
04:32 PM
Browse categories SKIP TO MAIN CONTENTSKIP TO SEARCHSummary Ayim29 Reply to Message Don't forget! Products and services may differ based on the user's country and PayPal account type. Please post the correct response for the user's situation. User halldorr: Canada Business Account Results from the PayPal Help Center Can't find the answer? Browse the PayPal Help Center To help others search for your topic, you can add tags. You can also choose where to post your topic under Location. Re: Getting "Security header is not valid" error, double checked the API credentials, stil Email me when someone replies to my post. Open discussion in popup Replying to: halldorr halldorr Contributor Contributor Feb-13-2018 01:44 AM Getting "Security header is not valid" error, double checked the API credentials, still not working Sending a request using the following code: $api_request = 'USER=' . urlencode('ouruser') . '&PWD=' . urlencode('ourpass') . '&SIGNATURE=' . urlencode('oursignature') . '&VERSION=76.0' . '&METHOD=ManageRecurringPaymentsProfileStatus' . '&PROFILEID=' . urlencode($subId) . '&ACTION=' . urlencode('Cancel') . '&NOTE=' . urlencode( 'Profile cancelled by PSGADMIN' ); $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'https://api-3t.paypal.com/nvp' ); curl_setopt( $ch, CURLOPT_VERBOSE, 1 ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_POST, 1 ); curl_setopt( $ch, CURLOPT_POSTFIELDS, $api_request ); $response = curl_exec( $ch ); Sending using PHP and the response I get back looks likje: Array ( [TIMESTAMP] => 2018-02-08T15:05:39Z [CORRELATIONID] => 44f5a6f13e3b8 [ACK] => Failure [VERSION] => 76.0 [BUILD] => 39206242 [L_ERRORCODE0] => 10002 [L_SHORTMESSAGE0] => Security error [L_LONGMESSAGE0] => Security header is not valid [L_SEVERITYCODE0] => Error ) I have double and triple checked the credentials we're sending (above I have just said ouruser, ourpass etc) but what could be triggering this error? Solved! Go to Solution. 9 people had this problem. Top Powered by Khoros HELP & CONTACT SECURITY ©1999-2021 PayPal, Inc. All rights reserved. Privacy Legal Policy updates

- « Previous page
-
- 1
- 2
- Next page »
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- How can I revoke SamCart's access my recurring payments? in NVP/SOAP APIs
- How to integrate PayPal during user signup to avoid re-entering credentials for future payments? in REST APIs
- I keep getting the error: “Unfortunately, a system error has occurred" in NVP/SOAP APIs
- ExpressCheckout to REST API - Is Partner Program Now Required to Host Simple 3rd Party Transactions? in REST APIs
- Credentials from sandbox to live in NVP/SOAP APIs