2

所以我看到“ API 错误抱歉,我们无法处理传入的请求。请重试或联系支持人员。” 信息

我被告知有问题的应用程序被授权使用 Square Commerce API。我已经确定我正在对我的 JSON 进行 url 转义。

这是我的 json 和链接的样子:

{"amount_money":
{"amount":100,"currency_code":"USD"},
"callback_url":"http://some_url/more_url/738",
"client_id":"secret_client_id",
"merchant_id":"secret_merchant_id",
"options":
{"supported_tender_types":["CREDIT_CARD"]}}


square-commerce-v1://payment/create?data=%7B%22amount_money%22:%7B%22amount%22:100,%22currency_code%22:%22USD%22%7D,%22callback_url%22:%22mah/url%22,%22client_id%22:%22secret%22,%22merchant_id%22:secret,%22options%22:%7B%22supported_tender_types%22:[%22CREDIT_CARD%22]%7D%7D

谁能看到我遗漏的任何东西?有没有办法从错误消息中获取更多信息?是否有可能原因的清单?

4

1 回答 1

1

所以最终 Square 出于各种原因发送此消息,其中一个重要的原因是 Square Register 被设置为“离线模式”。

禁用离线模式(在方形寄存器中)可以解决错误。

于 2015-05-07T18:56:37.363 回答