Hi. I was trying to make the Transaction API work in Jovo since the afternoon, only I realized that the
this.$googleAction.$transaction.isOrderAccepted()
function always returns false.
I saw in another topic (10/02) that it was just running the command jovo update that would solve it, but without success.
Could you check?
My Request JSON:
{
"responseId": "8051c9ab-bbb7-4431-9dec-03834bb03c4d-ee7586fb",
"queryResult": {
"queryText": "actions_intent_TRANSACTION_DECISION",
"parameters": {
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision"
},
"allRequiredParamsPresent": true,
"fulfillmentText": "Ok",
"fulfillmentMessages": [
{
"text": {
"text": [
"Ok"
]
}
}
],
"outputContexts": [
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/actions_capability_web_browser",
"parameters": {
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/actions_capability_media_response_audio",
"parameters": {
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/actions_capability_account_linking",
"parameters": {
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/actions_capability_screen_output",
"parameters": {
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/actions_capability_audio_output",
"parameters": {
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/google_assistant_input_type_keyboard",
"parameters": {
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/_jovo_session_dwatm",
"parameters": {
"merchantOrderId": "7rswvfzc4"
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/__system_counters__",
"lifespanCount": 1,
"parameters": {
"no-input": 0,
"no-match": 0,
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
},
{
"name": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE/contexts/actions_intent_transaction_decision",
"parameters": {
"TRANSACTION_DECISION_VALUE": {
"@type": "type.googleapis.com/google.actions.transactions.v3.TransactionDecisionValue",
"transactionDecision": "ORDER_ACCEPTED",
"order": {
"googleOrderId": "11669468079320699938",
"merchantOrderId": "7rswvfzc4",
"userVisibleOrderId": "7rswvfzc4",
"buyerInfo": {
"email": "[email protected]",
"firstName": "Jane",
"lastName": "Doe",
"displayName": "Jane Doe"
},
"createTime": "2020-11-05T04:15:40.182Z",
"lastUpdateTime": "2020-11-05T04:15:40.182Z",
"transactionMerchant": {
"id": "book_store_1",
"name": "Minha Pizza"
},
"contents": {
"lineItems": [
{
"id": "memoirs_1",
"name": "Frango com Requeijão",
"priceAttributes": [
{
"type": "REGULAR",
"name": "Item Price",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
},
{
"type": "TOTAL",
"name": "Valor Total",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
}
],
"purchase": {
"quantity": 1
},
"vertical": {
"@type": "type.googleapis.com/google.actions.orders.v3.verticals.purchase.PurchaseItemExtension",
"quantity": 1
}
},
{
"id": "memoirs_2",
"name": "Chocolate",
"priceAttributes": [
{
"type": "REGULAR",
"name": "Item Price",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
},
{
"type": "TOTAL",
"name": "Valor Total",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
}
],
"notes": [
"Special introduction by author."
],
"purchase": {
"quantity": 1
},
"vertical": {
"@type": "type.googleapis.com/google.actions.orders.v3.verticals.purchase.PurchaseItemExtension",
"quantity": 1
}
}
]
},
"priceAttributes": [
{
"type": "SUBTOTAL",
"name": "Subtotal",
"state": "ESTIMATE",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "1980000"
},
"taxIncluded": true
},
{
"type": "DELIVERY",
"name": "Entrega",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL"
},
"taxIncluded": true
},
{
"type": "TAX",
"name": "Taxa",
"state": "ESTIMATE",
"amount": {
"currencyCode": "BRL"
}
},
{
"type": "TOTAL",
"name": "Valor Total",
"state": "ESTIMATE",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "1980000"
}
}
],
"followUpActions": [
{
"type": "VIEW_DETAILS",
"title": "View details",
"openUrlAction": {
"url": "http://example.com"
}
},
{
"type": "CALL",
"title": "Call us",
"openUrlAction": {
"url": "tel:+16501112222"
}
},
{
"type": "EMAIL",
"title": "Email us",
"openUrlAction": {
"url": "mailto:[email protected]"
}
}
],
"termsOfServiceUrl": "http://www.example.com",
"note": "The Memoir collection",
"paymentData": {
"paymentResult": {
"merchantPaymentMethodId": "12345678"
},
"paymentInfo": {
"paymentMethodDisplayInfo": {
"paymentType": "PAYMENT_CARD",
"paymentMethodDisplayName": "VISA **** 1234"
},
"paymentMethodProvenance": "PAYMENT_METHOD_PROVENANCE_MERCHANT"
}
},
"purchase": {
"status": "CREATED",
"type": "RETAIL",
"returnsInfo": {
"daysToReturn": 1,
"policyUrl": "http://www.example.com"
},
"fulfillmentInfo": {
"id": "FULFILLMENT_SERVICE_ID",
"fulfillmentType": "DELIVERY",
"expectedFulfillmentTime": {
"timeIso8601": "2025-09-25T18:00:00.877Z"
},
"price": {
"type": "REGULAR",
"name": "Valor da Entrega",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL"
},
"taxIncluded": true
},
"fulfillmentContact": {
"firstName": "Guilherme",
"lastName": "Lirio",
"displayName": "Guilherme"
}
},
"purchaseLocationType": "ONLINE_PURCHASE",
"userVisibleStatusLabel": "CREATED"
},
"vertical": {
"@type": "type.googleapis.com/google.actions.orders.v3.verticals.purchase.PurchaseOrderExtension",
"status": "CREATED",
"type": "RETAIL",
"returnsInfo": {
"daysToReturn": 1,
"policyUrl": "http://www.example.com"
},
"fulfillmentInfo": {
"id": "FULFILLMENT_SERVICE_ID",
"fulfillmentType": "DELIVERY",
"expectedFulfillmentTime": {
"timeIso8601": "2025-09-25T18:00:00.877Z"
},
"price": {
"type": "REGULAR",
"name": "Valor da Entrega",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL"
},
"taxIncluded": true
},
"fulfillmentContact": {
"firstName": "Guilherme",
"lastName": "Lirio",
"displayName": "Guilherme"
}
},
"purchaseLocationType": "ONLINE_PURCHASE",
"userVisibleStatusLabel": "CREATED"
}
}
},
"text": "",
"transactionDecision": "actions_intent_TRANSACTION_DECISION.TRANSACTION_DECISION_VALUE.transactionDecision",
"transactionDecision.original": ""
}
}
],
"intent": {
"name": "projects/transaction-sample-uyye/agent/intents/e04d9607-cdf7-482f-9256-b8bbbd33bfe3",
"displayName": "Transaction Decision Complete"
},
"intentDetectionConfidence": 1,
"languageCode": "pt-br"
},
"originalDetectIntentRequest": {
"source": "google",
"version": "2",
"payload": {
"user": {
"locale": "pt-BR",
"lastSeen": "2020-11-05T04:15:50Z",
"userStorage": "{\"userId\":\"79108c80-6b3d-4d46-b9a1-a0e2a9221ff9\"}",
"userVerificationStatus": "VERIFIED"
},
"conversation": {
"conversationId": "ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE",
"type": "ACTIVE",
"conversationToken": "[\"__system_counters__\",\"_jovo_session_dwatm\"]"
},
"inputs": [
{
"intent": "actions.intent.TRANSACTION_DECISION",
"rawInputs": [
{
"inputType": "KEYBOARD"
}
],
"arguments": [
{
"name": "TRANSACTION_DECISION_VALUE",
"extension": {
"@type": "type.googleapis.com/google.actions.transactions.v3.TransactionDecisionValue",
"transactionDecision": "ORDER_ACCEPTED",
"order": {
"googleOrderId": "11669468079320699938",
"merchantOrderId": "7rswvfzc4",
"userVisibleOrderId": "7rswvfzc4",
"buyerInfo": {
"email": "[email protected]",
"firstName": "Jane",
"lastName": "Doe",
"displayName": "Jane Doe"
},
"createTime": "2020-11-05T04:15:40.182Z",
"lastUpdateTime": "2020-11-05T04:15:40.182Z",
"transactionMerchant": {
"id": "book_store_1",
"name": "Minha Pizza"
},
"contents": {
"lineItems": [
{
"id": "memoirs_1",
"name": "Frango com Requeijão",
"priceAttributes": [
{
"type": "REGULAR",
"name": "Item Price",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
},
{
"type": "TOTAL",
"name": "Valor Total",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
}
],
"purchase": {
"quantity": 1
},
"vertical": {
"@type": "type.googleapis.com/google.actions.orders.v3.verticals.purchase.PurchaseItemExtension",
"quantity": 1
}
},
{
"id": "memoirs_2",
"name": "Chocolate",
"priceAttributes": [
{
"type": "REGULAR",
"name": "Item Price",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
},
{
"type": "TOTAL",
"name": "Valor Total",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "990000"
},
"taxIncluded": true
}
],
"notes": [
"Special introduction by author."
],
"purchase": {
"quantity": 1
},
"vertical": {
"@type": "type.googleapis.com/google.actions.orders.v3.verticals.purchase.PurchaseItemExtension",
"quantity": 1
}
}
]
},
"priceAttributes": [
{
"type": "SUBTOTAL",
"name": "Subtotal",
"state": "ESTIMATE",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "1980000"
},
"taxIncluded": true
},
{
"type": "DELIVERY",
"name": "Entrega",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL"
},
"taxIncluded": true
},
{
"type": "TAX",
"name": "Taxa",
"state": "ESTIMATE",
"amount": {
"currencyCode": "BRL"
}
},
{
"type": "TOTAL",
"name": "Valor Total",
"state": "ESTIMATE",
"amount": {
"currencyCode": "BRL",
"amountInMicros": "1980000"
}
}
],
"followUpActions": [
{
"type": "VIEW_DETAILS",
"title": "View details",
"openUrlAction": {
"url": "http://example.com"
}
},
{
"type": "CALL",
"title": "Call us",
"openUrlAction": {
"url": "tel:+16501112222"
}
},
{
"type": "EMAIL",
"title": "Email us",
"openUrlAction": {
"url": "mailto:[email protected]"
}
}
],
"termsOfServiceUrl": "http://www.example.com",
"note": "The Memoir collection",
"paymentData": {
"paymentResult": {
"merchantPaymentMethodId": "12345678"
},
"paymentInfo": {
"paymentMethodDisplayInfo": {
"paymentType": "PAYMENT_CARD",
"paymentMethodDisplayName": "VISA **** 1234"
},
"paymentMethodProvenance": "PAYMENT_METHOD_PROVENANCE_MERCHANT"
}
},
"purchase": {
"status": "CREATED",
"type": "RETAIL",
"returnsInfo": {
"daysToReturn": 1,
"policyUrl": "http://www.example.com"
},
"fulfillmentInfo": {
"id": "FULFILLMENT_SERVICE_ID",
"fulfillmentType": "DELIVERY",
"expectedFulfillmentTime": {
"timeIso8601": "2025-09-25T18:00:00.877Z"
},
"price": {
"type": "REGULAR",
"name": "Valor da Entrega",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL"
},
"taxIncluded": true
},
"fulfillmentContact": {
"firstName": "Guilherme",
"lastName": "Lirio",
"displayName": "Guilherme"
}
},
"purchaseLocationType": "ONLINE_PURCHASE",
"userVisibleStatusLabel": "CREATED"
},
"vertical": {
"@type": "type.googleapis.com/google.actions.orders.v3.verticals.purchase.PurchaseOrderExtension",
"status": "CREATED",
"type": "RETAIL",
"returnsInfo": {
"daysToReturn": 1,
"policyUrl": "http://www.example.com"
},
"fulfillmentInfo": {
"id": "FULFILLMENT_SERVICE_ID",
"fulfillmentType": "DELIVERY",
"expectedFulfillmentTime": {
"timeIso8601": "2025-09-25T18:00:00.877Z"
},
"price": {
"type": "REGULAR",
"name": "Valor da Entrega",
"state": "ACTUAL",
"amount": {
"currencyCode": "BRL"
},
"taxIncluded": true
},
"fulfillmentContact": {
"firstName": "Guilherme",
"lastName": "Lirio",
"displayName": "Guilherme"
}
},
"purchaseLocationType": "ONLINE_PURCHASE",
"userVisibleStatusLabel": "CREATED"
}
}
}
},
{
"name": "text"
}
]
}
],
"surface": {
"capabilities": [
{
"name": "actions.capability.WEB_BROWSER"
},
{
"name": "actions.capability.MEDIA_RESPONSE_AUDIO"
},
{
"name": "actions.capability.ACCOUNT_LINKING"
},
{
"name": "actions.capability.SCREEN_OUTPUT"
},
{
"name": "actions.capability.AUDIO_OUTPUT"
}
]
},
"isInSandbox": true,
"availableSurfaces": [
{
"capabilities": [
{
"name": "actions.capability.SCREEN_OUTPUT"
},
{
"name": "actions.capability.AUDIO_OUTPUT"
},
{
"name": "actions.capability.WEB_BROWSER"
}
]
}
],
"requestType": "SIMULATOR"
}
},
"session": "projects/transaction-sample-uyye/agent/sessions/ABwppHF-nTKIxmznAEN0m1mppLjqaVok4poU0d0fLDkMTFJpT9XyCN6HiiaGJKVcbatEr-n844qgVZXs-2PdPkgZufMTQTE"
}