PayPal "Security header is not valid" Fehlermeldung. Was mit diesem zu tun?
Ich bin mit PayPal DoDirectPayment API für die payment-integration. Ich erhalte eine Fehlermeldung wie unten.
Security error:
Error no: 10002
Error message: Security header is not valid
Hier ist mein code,
$environment = 'sandbox';
//Set up your API credentials, PayPal end point, and API version.
$API_UserName = urlencode('xxxxxxxx');
$API_Password = urlencode('xxxxxxxx');
$API_Signature = urlencode('xxxxxxxxxxxxxxxxxxxxxxxxxxx');
$API_Endpoint = "https://api-3t.paypal.com/nvp";
if("sandbox" === $environment || "beta-sandbox" === $environment) {
$API_Endpoint = "https://api-3t.$environment.paypal.com/nvp";
}
$version = urlencode('51.0');
//setting the curl parameters.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
//Set the curl parameters.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
//Set the API operation, version, and API signature in the request.
$nvpreq = "METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_";
//Set the request as a POST FIELD for curl.
curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);
//Get response from the server.
$httpResponse = curl_exec($ch);
Bitte helfen Sie mir aus diesem problem.
Dank.
InformationsquelleAutor gautamlakum | 2010-10-11
Du musst angemeldet sein, um einen Kommentar abzugeben.
Überprüfen Sie die API-endpoint-version und sehr sorgfältig:
https://developer.paypal.com/webapps/developer/docs/classic/api/endpoints/
link wurde entfernt von der Seite
Versuchen Sie: developer.paypal.com/webapps/developer/docs/classic/api/...
InformationsquelleAutor leuemon
springen https://developer.paypal.com/developer/accounts
login
erstellen Sie ein Geschäftskonto
klicken Sie auf das business-Konto, klicken Sie auf Profil, klicken Sie auf API-Anmeldeinformationen und nutzen, die zum Zugriff auf die api https://api-3t.sandbox.paypal.com/nvp
InformationsquelleAutor Elia Weiss
Mein problem aufgetreten, aufgrund von api-Anmeldeinformationen falsch. Selbst nach Eingabe des korrekten sandbox-api-Benutzername, Passwort und api-Schlüssel, ich habe immer noch den gleichen Fehler. Ich neu meine test-accounts, trat Sie in mein app wieder neu gestartet den server, und es funktionierte.
Hier ist ein link von x.com reden zu einem ähnlichen Thema: paypal-security-header Problem
InformationsquelleAutor Danny
sollten Sie Ihren Endpunkt api.sandbox.paypal.com es arbeitete mir
Ersten Sie sich anmelden, um Konto sendbox und überprüfen Sie in der Registerkarte Anwendung
InformationsquelleAutor user2230647
user2230647 richtig ist. Sie müssen auf den sandbox-Informationen für alle die folgenden Parameter in Fall, dass Sie wollen, um zu testen im sandbox-Modus:
InformationsquelleAutor Dibyendu Mitra Roy