Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
排查物理事务 (Dialogflow)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如果您在使用 Action 执行交易 intent 时遇到问题,请查看
您遇到了以下各部分所述的任何症状,并且
执行建议的问题排查步骤。
操作无响应
具体情况:当触发交易 intent(TransactionRequirements
、TransactionDecision
)时,用户收到 “应用当时无响应。请稍后再试。”

问题排查:确保您的 Action 项目包含所有必需的目录信息,包括隐私权政策链接。
无法处理收据
症状:在购买授权期间,用户收到以下响应
“抱歉,我无法处理您的收据。”

问题排查:
- 确保您的
merchantOrderId
是唯一的。无法下新订单
与之前的现有订单 ID 搭配使用
- 请确保你发送的是简单的回复
与初始
orderUpdate
一起保存;这是强制性的响应格式。
无法发送订单更新
具体情况:在发送现有订单的订单更新时,Orders API
返回错误代码 500 和以下错误消息:“Order OrderID
无法更新项目“ProjectID
”的 ID。请重试。”
问题排查:
订单更新未显示为通知
症状:已下订单,后续订单更新成功,
状态代码 200,但在启用了 Google 助理的用户设备上没有以推送通知的形式显示
设备。
问题排查:并非所有订单更新都会以推送通知的形式反映;
仅限状态为 CANCELLED
、FULFILLED
、REJECTED
或 RETURNED
的更新
导致用户收到通知。
查看账号中的交易
您可以按照以下步骤查看通过您的账号进行的交易:
- 前往 myaccount.google.com 并登录。
- 点击付款和订阅。
- 在购买交易下方,点击管理购买交易。
您还可以通过添加以下网址查询参数来查看沙盒交易:
myaccount.google.com/purchases?sandbox=1
其他问题排查提示
如果上述症状不能描述您遇到的问题,您可能
参阅项目的 Stackdriver 日志
进一步排查问题。您也可以参阅 Google 账号设置
来查看和管理您通过 Action 进行的任何购买交易。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis troubleshooting guide helps you resolve issues when users can't complete transactions with your Action.\u003c/p\u003e\n"],["\u003cp\u003eCommon problems include the Action not responding, issues processing receipts, difficulties sending or receiving order updates, and viewing transaction history.\u003c/p\u003e\n"],["\u003cp\u003eSolutions involve verifying Action settings, ensuring unique order IDs, using correct response formats, and checking authentication credentials.\u003c/p\u003e\n"],["\u003cp\u003eOrder update notifications are only sent for specific status changes like cancellations, fulfillments, rejections, or returns.\u003c/p\u003e\n"],["\u003cp\u003eFor further assistance, consult Stackdriver logs or review your Google Account settings for purchase history and management.\u003c/p\u003e\n"]]],[],null,["# Troubleshooting Physical Transactions (Dialogflow)\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 triggering a transactions intent (`TransactionRequirements`, `TransactionDecision`), the 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/responses#simple_responses) 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](/assistant/df-asdk/transactions/physical/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."]]