交易 API 將於 2023 年 5 月 3 日淘汰,並將於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
實體交易疑難排解
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如果無法使用動作執行交易意圖,請確認
您將遇到以下各節所述的任何症狀,
採取建議的疑難排解步驟
動作沒有回應
問題:查看交易需求或使用者的決定時
使用者收到「應用程式目前沒有回應」請稍後再試。」

疑難排解:確認您的 Action 專案包含所有必要的目錄資訊,包括隱私權政策連結。
無法處理收據
徵狀:使用者在購買授權期間收到以下回覆:
「很抱歉,我無法處理你的收據。」

疑難排解:
- 確認
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 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-28 (世界標準時間)。
[null,null,["上次更新時間:2025-07-28 (世界標準時間)。"],[[["\u003cp\u003eTransaction functionalities for Conversational Actions are unavailable in Denmark, France, Germany, Italy, the Netherlands, Norway, Poland, Spain, and Sweden due to regulatory requirements.\u003c/p\u003e\n"],["\u003cp\u003eActions with Transactions will continue to function in all other supported locales.\u003c/p\u003e\n"],["\u003cp\u003eTroubleshooting steps are provided for common issues like Action unresponsiveness, receipt processing failures, order update failures, and missing order update notifications.\u003c/p\u003e\n"],["\u003cp\u003eUsers can view their transaction history through their Google Account settings or by visiting myaccount.google.com.\u003c/p\u003e\n"]]],["Due to regulatory changes, Conversational Actions' transaction features are unavailable in Denmark, France, Germany, Italy, the Netherlands, Norway, Poland, Spain, and Sweden. Troubleshooting steps include ensuring complete directory information, unique `merchantOrderIds`, and proper JWT authentication for the Orders API. Only order updates with specific statuses (`CANCELLED`, `FULFILLED`, `REJECTED`, `RETURNED`) trigger notifications. Users can view transactions on their Google Account via the \"Payments & subscriptions\" section or via Stackdriver logs.\n"],null,["# Troubleshooting physical transactions\n\n| **Warning:** Due to new regulatory requirements, transaction functionalities for Conversational Actions are no longer available in the following countries:\n|\n|\n| Denmark, France, Germany, Italy, the Netherlands, Norway, Poland, Spain, Sweden\n|\n|\n| Actions with Transactions will continue to work in all supported locales.\n\n\u003cbr /\u003e\n\nIf you're having trouble fulfilling transaction intents with your Action, see if\nyou're experiencing any of the symptoms described in the following sections and\ntake the recommended troubleshooting steps.\n\nAction not responding\n---------------------\n\n**Symptom:** When checking for transaction requirements or decision of the user,\nthe user gets back a response of *\"App isn't responding at the moment. Try again soon.\"*\n\n**Troubleshooting:** Ensure your Action project has all the required directory information, including a privacy policy link.\n\nUnable to process receipt\n-------------------------\n\n**Symptom:** During purchase authorization, the user gets a response saying\n\"*Sorry, I am unable to process your receipt.*\"\n\n**Troubleshooting:**\n\n- Make sure your `merchantOrderId` is unique. A new order can't be placed with a previous, existing order ID.\n- Make sure you're sending a [simple response](/assistant/conversational/prompts-simple) alongside the initial `orderUpdate`; this is the mandatory response format.\n\nUnable to send order updates\n----------------------------\n\n**Symptom:** When sending an order update for an existing order, the Orders API\nresponds with error code 500 and the following error message: \"*Order `OrderID`\nfor project `ProjectID` could not be updated. Please try again.*\"\n\n**Troubleshooting:**\n\n- Make sure you're supplying working credentials during [JWT authentication for\n the Orders API](https://github.com/google/google-api-nodejs-client#using-jwt-service-tokens).\n\nOrder updates not appearing as notifications\n--------------------------------------------\n\n**Symptom:** Initial order is placed and follow-up order updates succeed with\nstatus code 200 but don't appear as push notifications on the user's Assistant-enabled\ndevice.\n\n**Troubleshooting:** Not all order updates will be reflected as a push notification;\nonly updates with a status of `CANCELLED`, `FULFILLED`, `REJECTED`, or `RETURNED`\nresult in a notification.\n\nView transactions on your account\n---------------------------------\n\nYou can view transactions that have been made through your account by following these steps:\n\n1. Navigate to [myaccount.google.com](https://myaccount.google.com) and log in.\n2. Click **Payments \\& subscriptions** in the left menu.\n3. Under **Purchases** , click **Manage purchases**.\n\nYou can also view sandbox transactions by adding the following URL query parameter: \n\n```text\nmyaccount.google.com/purchases?sandbox=1\n```\n\nOther troubleshooting tips\n--------------------------\n\nIf the above symptoms don't describe the problem you're running into, you may\nwant to refer to your project's [Stackdriver logs](/assistant/console/troubleshooting)\nfor further troubleshooting. You can also refer to your [Google Account settings](https://myaccount.google.com/preferences?pli=1#subscriptions)\nto view and manage any purchases you've made with your Action."]]