Magento – magento PayPal gateway has rejected request. Security header is not valid (#10002: Security error)

developer-modemagento-1.9paymentpaypal

PayPal gateway has rejected request. Security header is not valid (#10002: Security error).
how to resolve it

Best Answer

Using the same API information for the Sandbox and Live environments. You need to generate separate API information for your Sandbox and Live accounts.