调试寄存器错误

Debugging Register Error

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

我得知相关应用已获得使用 Square Commerce API 的授权。我已经确定我正在 url-逃避我的 JSON.

这是我的 json 和 link 的样子:

{"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

有人能看到我遗漏了什么吗?有没有办法从错误消息中获取更多信息?有可能的原因列表吗?

所以最终 Square 出于各种原因发送了这条消息,这里最重要的是 Square Register 被设置为 'Offline Mode'。

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