paypal express checkout =>Error: Security header is not valid

前端 未结 5 1463
野性不改
野性不改 2020-12-28 11:58

Error : Security header is not valid Array

(
    [TIMESTAMP] => 2014%2d04%2d29T07%3a24%3a29Z
    [CORRELATIONID] => 6af6749c848d6
    [ACK] => Failu         


        
相关标签:
5条回答
  • 2020-12-28 12:47

    I had this issue because my login contained "+"(plus) sign. Finally I manually decoded it to "%2B" as described here http://www.zen-cart.com/showthread.php?80849-Plus-sign-%28-quot-quot-%29-in-user-name-causes-security-header-failure-in-Paypal-Express-Checkou and the issue gone.

    0 讨论(0)
  • 2020-12-28 12:48

    API_USERNAME API_PASSWORD API_SIGNATURE PAYPAL_URL

    apart from them change this too:

    ** (from Sandbox > Live)**

    0 讨论(0)
  • 2020-12-28 12:52

    generally this error means you are not using the correct API credentials. If you are convinced your credentials are correct then take a look at your endpoint. Sandbox credentials will not be valid in the production environment and live credentials will produce this error in the sandbox

    0 讨论(0)
  • 2020-12-28 12:57

    It doesn't always mean invalid API credential or wrong endpoint

    If you're absolutely sure in this info, check the encoding you're making your request with - it should be UTF-8 without Byte-Order Mark (BOM), e.g (in Visual C# .NET)

    var requestEncoding = new UTF8Encoding(false); // UTF-8 without BOM
    
    using (var streamWriter = new StreamWriter(request.GetRequestStream(), requestEncoding))
    {
        streamWriter.Write(requestBody);
    }
    

    This is not a default value, and it helped me after an hour of checking everything

    Of course, make sure all of your parameters are URL encoded, too

    0 讨论(0)
  • 2020-12-28 13:02

    Wrong credentials Make sure that you've put your API Username, API Password and API Signature correctly. Sometimes it happens that during copy and paste there is accidently a space added, this would trigger this error. Doublecheck this settings in the SDK or in the admin panel of your third party shopping cart.

    Wrong Endpoint This error would come up if you send the data to the wrong endpoint. Make sure that you sending the live credentials and data to our live endpoint. When you want to test your store make sure that you use our test endpoint and the credentials from your sandbox test account. If you are using a third party shopping cart, make sure that your store is running in test or live mode, regarding which credentials you are using. FOR LIVE

    https://api-3t.paypal.com/nvp?&user=xxxxxxxxxx&pwd=xxxxxxxxxx&signature=xxxxxxxxxx&version=70.0&METHOD=SetExpressCheckout&RETURNURL=http://www.paypal.com/test.php&CANCELURL=http://www.paypal.com/test.php&PAYMENTACTION=Sale&AMT=50&CURRENCYCODE=USD

    FOR SANDBOX

    https://api-3t.sandbox.paypal.com/nvp?&user=xxxxxxxxxx&pwd=xxxxxxxxxx&signature=xxxxxxxxxx&version=70.0&METHOD=SetExpressCheckout&RETURNURL=http://www.paypal.com/test.php&CANCELURL=http://www.paypal.com/test.php&PAYMENTACTION=Sale&AMT=50&CURRENCYCODE=USD

    For reffrence link

    0 讨论(0)
提交回复
热议问题