EXPECTED_INTEGER - Square支付门户的问题 [英] EXPECTED_INTEGER — Issues with Square payment portal

查看:183
本文介绍了EXPECTED_INTEGER - Square支付门户的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到通过我的电子商务网站接受付款的问题。这似乎只是随机发生的,我已经接受了之前没有问题的付款,但每次都经常发生这种情况。 Square API没有错误代码的任何描述。

I'm having issues accepting payment through my ecommerce site. This only seems to happen randomly, I've accepted payment previous without issue but every so often this happens. Square API didn't have any description with the error code.

Array
(
[0] => stdClass Object
(
[category] => INVALID_REQUEST_ERROR
[code] => EXPECTED_INTEGER
[detail] => Expected an integer value.
[field] => amount_money.amount
)
)
Order status changed from Pending payment to Failed.


推荐答案

每当您尝试使用金额收费时都会出现此错误这不是整数值,例如十进制或浮点数。你要做的一件事就是检查并确保你收取的金额类型是一个整数。

This error occurs whenever you try to charge with an amount that is not an integer value, such as a decimal or a floating point number. One thing you can do to prevent this is to check and make sure the type of amount you're charging is a whole number.

另外,谢谢你的反馈Square的开发人员文档。我们会根据此类反馈不断改进产品,因此我们一定会与相应的团队分享您的想法。

Additionally, thank you for the feedback about Square's Developer Doc. We are constantly improving the product based on feedback like this, so I’ll be sure to share your thoughts with the appropriate team.

这篇关于EXPECTED_INTEGER - Square支付门户的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆