接收“过期日期无效”通过 Authorize.Net 处理信用卡时
我正在发布到 auth.net Web 服务来创建信用卡交易。在测试和实际运行中,如果我使用 9 或以下的月份,我会收到错误。它工作了一段时间,但开始出现这个问题。我在月份中填充了零。因此,根据规范,我发送的格式是 YYYY-MM。我现在使用的卡的日期为 7/12,并且我已确认我发送的值是 2012-07。我仍然收到此错误。
我见过 这篇帖子,我正在关注它所说的内容。 你知道我缺少什么吗?
账单
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会通过在进行 Web 服务调用的位置放置一个断点来检查请求。确保没有任何东西将您的 07 转换回 7。如果您尝试传递整数而不是字符串,则可能会发生这种情况。您是否在代码中的任何时候将过期值转换为任何非字符串类型?
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?