1

I'm posting to the auth.net web service to create a credit card transaction. In both test and live, if i use a 9 or below month, I get the error. It was working a while back but started getting this issue. I am left padding zeros to the month. So, the format I'm sending is YYYY-MM, per the specs. The card I'm using now has a 7/12 date and I've confirmed the value I'm sending is 2012-07. I still get this error.

I've seen this post and am following what it said. Any idea on what I'm missing?

Bill

Bill Martin
  • 4,825
  • 9
  • 52
  • 86
  • I would examine the request by putting a breakpoint at the point where you are doing the web service call. Make sure that there's not something converting your 07 back to a 7. This might happen if you're trying to pass an integer instead of a string. Are you at any point in your code converting the expiration values to any non-string types? – Jeff Turner Feb 01 '12 at 16:57
  • I think you're on to something. I just found where it's converted to an int. Testing.... – Bill Martin Feb 01 '12 at 17:00
  • Just ran it. You're right. Converted to an int and that caused the problem. Can't believe i missed it. If you want, post the answer and I'll accept it. Thanks a lot for the help! – Bill Martin Feb 01 '12 at 17:21
  • okay I've posted it. glad I could help! – Jeff Turner Feb 01 '12 at 17:36

1 Answers1

1

I would examine the request by putting a breakpoint at the point where you are doing the web service call. Make sure that there's not something converting your 07 back to a 7. This might happen if you're trying to pass an integer instead of a string. Are you at any point in your code converting the expiration values to any non-string types?

Jeff Turner
  • 1,318
  • 8
  • 12