Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

active merchant paypal gateway security header is not valid issue

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.

like image 450
knotito Avatar asked Sep 22 '14 12:09

knotito


People also ask

How do I fix my PayPal Security header is not valid?

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.

What is PayPal gateway error?

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.


1 Answers

Security header is not valid error comes in when :

  1. 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.

  2. 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.

like image 156
Eshan Avatar answered Sep 20 '22 22:09

Eshan