I followed this railscast to set up active merchant on a rails 4.1 app.
While I try to create orders and pay, I get the error from paypal server:
Security header is not valid
My question: What is wrong in my set up to have that kind of error ?
By the way does anyone knows what I can fill in cvv field for fake credit cards created with sandbox accounts.
The error message means that the API credentials you have entered are not exactly the same as what they have on file for you. To correct, go to Settings > Card Options > PayPal you should see the API credentials there, compare them to your PayPal ones.
The above error indicates you are using incorrect API credentials. If you are convinced that credentials are correct check the endpoint. You can also contact Paypal support for more information on your Paypal API credentials.
Security header is not valid error comes in when :
You are in the live mode but you have used the credentials(API username, password and signature) from the test account or vice versa. Make sure if you are in test mode you take the credentials from sandbox account.
If the credentials are indeed incorrect. Make sure you haven't pasted any space while copying and pasting the credentials.
These are the two possibilities for this error.
Regarding the sandbox credit cards, yes you can use any fake credit cards using any fake card generator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With