Hi Alex,
I tried again without any luck. I am not using .ts but regular node.js, here is my current code:
LAUNCH() {
return this.toIntent(‘TransactionCheckRequirementsIntent’);
},
//GOOGLE TRANSACTION API STARTS HERE
TransactionCheckRequirementsIntent() {
console.log(“Going to check requirements”);
this.$googleAction.$transaction.checkRequirements();
console.log(“Requirements checked”);
this.ask(‘Ok sir?’);
},
ON_TRANSACTION: {
TRANSACTION_REQUIREMENTS_CHECK() {
// this.tell(‘requirements check’)
if (this.$googleAction.$transaction.canTransact()) { //also tried with $transaction.isRequirementsCheckOk
console.log(“OK SIR”);
this.$googleAction.$transaction.askForDeliveryAddress(‘Address?’);
} else if (this.$googleAction.$transaction.isRequirementsCheckUserActionRequired()) {
console.log(“KO SIR”);
this.tell(‘Further action is required’)
}
},
Here is the output from Jovo:
{
“fulfillmentText”: “Ok sir?”,
“outputContexts”: [],
“payload”: {
“google”: {
“expectUserResponse”: true,
“richResponse”: {
“items”: [
{
“simpleResponse”: {
“ssml”: “Ok sir?”
}
}
]
},
“noInputPrompts”: [
{
“ssml”: “Ok sir?”
}
],
“systemIntent”: {
“intent”: “actions.intent.TRANSACTION_REQUIREMENTS_CHECK”,
“data”: {
“@type”: “type.googleapis.com/google.actions.transactions.v3.TransactionRequirementsCheckSpec”
}
},
“userStorage”: “{“userId”:“9e9262eb-c12f-42ed-a3ef-4ca2ff8a70bd”}”
}
}
}
I am testing from Google Action Console. It keeps on saying that the Action does not reply. But to me Jovo output seem correct?
It is the same if I test from Google Assistant on mobile phone.
Thanks for any tip !