PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Card Code Mismatch

  1. A recent transaction was declined by due to a card code mismatch. The customer said he received no error message but noticed that the amount said "$0.00" even though he had entered $100.00. This particular form has some custom coding, so the issue could be there. Just to be sure I've got all of the bases covered, can you tell me what the normal handling is for a card code mismatch? I'm trying to figure our why he received an email receipt for $0 but got no error message.


    Posted 11 years ago on Monday April 22, 2013 | Permalink
  2. If you need assistance with this, please post the custom code you are using, to or Please also include a link to the page on your site with the form in question.

    Finally, you can use our logging add-on to help debug this issue:

    Posted 11 years ago on Wednesday May 22, 2013 | Permalink
  3. I think I know what the problem likely was. Javascript is used to dynamically populate fields further down the page. If someone uses the previous and next buttons to backtrack, the totals are lost and the user ends up on the payment page with a $0 amount in the post data. Perhaps the programmers who wrote our Javascript will be able to fix it.

    Posted 11 years ago on Wednesday May 22, 2013 | Permalink
  4. That is likely. Please let us know how it turns out. Thank you.

    You can run your code again, if you need to, on each page of a multi-page form, with the gform_post_render jQuery hook:

    Posted 11 years ago on Thursday May 23, 2013 | Permalink
  5. We are still experiencing intermittent problems. Some transactions go through without a problem; others not so. We seem to have two issues:

    (1) User submits a gift. The gift itemization (the Javascript section) shows the proper amounts, but $0 is transmitted to Yet the form processes the email notifications as if a normal transaction occurred. The user thinks everything went through when it actually didn't.

    (2) The other issue is that the form sends the email notifications and receipts even when a transaction is declined.

    Here is the link to the form:

    I will post the custom code to Pastie, but I would prefer not to share them in the forum. May I email them to you?

    In addition, I installed the logging tool and set it to record everything for and the core. I didn't see where to access the logs, though; so I will need your guidance there.

    My colleagues are in the middle of a donor campaign, and these errors are troublesome. So, your help is greatly appreciated.


    Posted 11 years ago on Tuesday June 4, 2013 | Permalink