A gateway error happens for one of 3 reasons:
The billing address or name does not match what the bank/credit card company has on file for the customer
The security code does not match what the bank/credit card company has on file
The bank has declined the transaction for whatever reason
If you provide the last 4 digits of the credit card, we can usually narrow it down to one of these reasons.