2015-01-14 46 views
2

所以我看到「API錯誤對不起,我們無法處理傳入請求,請重試或聯繫支持。」消息調試註冊錯誤

我被告知應用程序有權使用Square Commerce API。我確定我是通過網址轉義我的JSON。

這是我的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 

任何人都可以看到什麼我失蹤?有沒有從錯誤信息中獲取更多信息的方法?是否有可能的原因列表?

+0

我沒有在應用頁面上設置我的回調鏈接,這可能是相關的嗎? – Donald

+0

我設置了它,它沒有幫助:( – Donald

+0

我可以確信,client_id和merchant_id是正確的。 – Donald

回答

1

因此Square最終發送此消息的原因有很多,這裏最重要的是Square Register被設置爲'Offline Mode'。

禁用離線模式(在方形寄存器中)可解決錯誤。