交易 API 將於 2023 年 5 月 3 日淘汰,並將於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
排解實體交易問題 (Dialogflow)
如果無法使用動作執行交易意圖,請確認
您將遇到以下各節所述的任何症狀,
採取建議的疑難排解步驟
動作沒有回應
問題:觸發交易意圖 (TransactionRequirements
、TransactionDecision
) 時,使用者會收到「應用程式目前沒有回應」的回應。請稍後再試。」
![](https://developers.google.cn/static/assistant/df-asdk/transactions/images/transactions_notresponding.png?hl=zh-tw)
疑難排解:確認您的 Action 專案包含所有必要的目錄資訊,包括隱私權政策連結。
無法處理收據
徵狀:使用者在購買授權期間收到以下回覆:
「很抱歉,我無法處理你的收據。」
![](https://developers.google.cn/static/assistant/df-asdk/transactions/images/transactions_noreceipt.png?hl=zh-tw)
疑難排解:
- 確認
merchantOrderId
並未重複。無法建立新訂單
舊有訂單 ID 對應
- 請確認您傳送的是簡單回應
加上初始
orderUpdate
;此為必填的回應格式。
無法傳送訂單最新資訊
問題:傳送現有訂單的更新資訊時,Orders API
傳回錯誤代碼 500 和以下錯誤訊息:「Order OrderID
無法更新專案 ProjectID
。請再試一次。」
疑難排解:
訂單最新動態並未顯示為通知
問題:完成初始訂單,後續追蹤訂單也會成功更新
在使用者已啟用 Google 助理的情況下,系統不會顯示狀態碼 200 的推播通知
裝置。
疑難排解:並非所有訂單更新都會以推播通知的形式呈現。
僅更新狀態為 CANCELLED
、FULFILLED
、REJECTED
或 RETURNED
並顯示通知
在帳戶中查看交易
你可以按照下列步驟查看透過帳戶進行的交易:
- 前往 myaccount.google.com 並登入。
- 按一下「付款與」訂閱。
- 按一下「購買的內容」下方的「管理購買項目」。
您也可以加入以下網址查詢參數,以查看沙箱交易:
myaccount.google.com/purchases?sandbox=1
其他疑難排解提示
如果上述症狀與您的問題不符,您可以
想要參考專案的 Stackdriver 記錄檔
,進一步排解問題。您也可以前往 Google 帳戶設定頁面。
查看及管理所有透過動作進行的購買交易。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-08 (世界標準時間)。
[null,null,["上次更新時間:2024-09-08 (世界標準時間)。"],[[["This troubleshooting guide helps you resolve issues when users can't complete transactions with your Action."],["Common problems include the Action not responding, issues processing receipts, difficulties sending or receiving order updates, and viewing transaction history."],["Solutions involve verifying Action settings, ensuring unique order IDs, using correct response formats, and checking authentication credentials."],["Order update notifications are only sent for specific status changes like cancellations, fulfillments, rejections, or returns."],["For further assistance, consult Stackdriver logs or review your Google Account settings for purchase history and management."]]],[]]