我创建了https://github.com/actions-on-google/dialogflow-transactions-nodejs的纯德语示例。 当我通过电话(或网络模拟器)触发操作并进入第一步" transaction_check_nopayment"我在日志中看到该方法被调用但在客户端我得到了回复:"抱歉,我没有得到任何回复。" 可能是什么问题呢?如何更接近问题?
这是日志:
2018-01-08T08:03:20.685Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug checkForTransactionRequirements: transactionConfig=undefined, dialogState=undefined
2018-01-08T08:03:20.685Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug fulfillSystemIntent_: intent=actions.intent.TRANSACTION_REQUIREMENTS_CHECK, specType=type.googleapis.com/google.actions.v2.TransactionRequirementsCheckSpec, intentSpec={}, promptPlaceholder=PLACEHOLDER_FOR_TXN_REQUIREMENTS dialogState=undefined
2018-01-08T08:03:20.685Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug buildResponse_: textToSpeech=PLACEHOLDER_FOR_TXN_REQUIREMENTS, expectUserResponse=true, noInputs=undefined
2018-01-08T08:03:20.686Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug isSsml_: text=PLACEHOLDER_FOR_TXN_REQUIREMENTS
2018-01-08T08:03:20.690Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug getUser
2018-01-08T08:03:20.691Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug doResponse_: response={"speech":"PLACEHOLDER_FOR_TXN_REQUIREMENTS","contextOut":[{"name":"_actions_on_google_","lifespan":100,"parameters":{}}],"data":{"google":{"expectUserResponse":true,"noInputPrompts":[],"isSsml":false,"systemIntent":{"intent":"actions.intent.TRANSACTION_REQUIREMENTS_CHECK","data":{"@type":"type.googleapis.com/google.actions.v2.TransactionRequirementsCheckSpec"}}}}}, responseCode=200
2018-01-08T08:03:20.691Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug isNotApiVersionOne_
2018-01-08T08:03:20.691Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug Response {"speech":"PLACEHOLDER_FOR_TXN_REQUIREMENTS","contextOut":[{"name":"_actions_on_google_","lifespan":100,"parameters":{}}],"data":{"google":{"expectUserResponse":true,"noInputPrompts":[],"isSsml":false,"systemIntent":{"intent":"actions.intent.TRANSACTION_REQUIREMENTS_CHECK","data":{"@type":"type.googleapis.com/google.actions.v2.TransactionRequirementsCheckSpec"}}}}}
2018-01-08T08:03:20.693712230Z D transactions: Function execution took 627 ms, finished with status code: 200
2018-01-08T08:03:20.698Z I transactions: Mon, 08 Jan 2018 08:03:20 GMT actions-on-google:debug undefined
当我比较工作英语版本和不工作德语版本的日志时,我看到了一个区别: 在英文日志中,每一行都以"事务hyd4scvzft31"结束。这部分我想念德国的日志。 然而,在我的德语应用程序的配置中,我也回答了#34;你的应用程序是否执行交易?"是的。
在transaction_check_nopayment的示例中调用app.askForTransactionRequirements()。德语不支持askForTransactionRequirements()吗?是否有关于支持语言的事务API的概述?交易API是否适用于德国用例?作为付款方式,我有发票。当我理解文档时,这就像在google-API中没有付款一样。
答案 0 :(得分:0)
隐藏在Policies and Terms > Other > Special Requirements for Certain Use Cases
下,Google声明'目前,交易API仅适用于美国;其他国家/地区的应用无法在API可用之前实施API或完成交易。'