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?
... View more