接收“过期日期无效”通过 Authorize.Net 处理信用卡时

发布于 2025-01-01 01:45:10 字数 368 浏览 1 评论 0原文

我正在发布到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏末 2025-01-08 01:45:10

我会通过在进行 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文