Transaction API Issues Migrating from v2 to v3

google-assistant

#1

Hello,

I have been having a lot of trouble since migrating to Jovo v3, specifically only with Transactions for Google.

I’m able to get through to the Google Confirmation page, but whenever I say Yes to accepting the order, this.$googleAction.$transaction.isOrderAccepted() is always false.

I also looked at this.$googleAction.$transaction.getTransactionDecision(), and that was undefined.

Has anyone else had this issue and knows why Transactions are failing at these steps?

This is a Physical Goods transaction - in V2, we did not use any requirements check, or delivery address check, and we’ve been working fine. Are those mandatory for me to implement just to get transactions working?


#2

Hey!

Could you provide the request JSON?


#3

Yes of course! I have deleted just a few Session Attributes as they have PII or sensitive info, otherwise this is the full request after saying “Yes” to place my order.

I also notice it still shows V2 in the “type” instance, but I even just upgraded Jovo to 3.1 yesterday and I know for sure that is what I am running.

{
“responseId”: “8d0fa45e-ce31-4074-9857-778ed9418403-f1e7b32a”,
“queryResult”: {
“queryText”: “actions_intent_TRANSACTION_DECISION”,
“parameters”: {},
“allRequiredParamsPresent”: true,
“fulfillmentMessages”: [
{
“text”: {
“text”: [
“”
]
}
}
],
“outputContexts”: [
{
“name”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_media_response_audio”
},
{
“name”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_account_linking”
},
{
“name”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_screen_output”
},
{
“name”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_audio_output”
},
{
“name”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/_jovo_session_zolia”,
“parameters”: {
“GAUser”: “463c47a9-1f06-404e-badf-e2625cdebd6d”,
“voicePlatform”: “Google”,
“userInformation”: {
= “customerName”: “John”,
“userName”: “STEVETEST11”,
“accountInformation”: {
“directPayEnrollmentStatus”: false,
“paperlessBilling”: true,
“contactPhoneNumber”: {
“profileTelephoneNumber”: {
“areaCode”: “631”,
“cityCode”: “974”,
“countryCode”: “1”,
“localNumber”: “3621”,
“telephoneUsage”: “contact”
}
}
},
“customerType”: “Residential”
},
“pinState”: {
“pinValidated”: false,
“changePaymentPIN”: false,
“hasBeenPromptedForPIN”: false,
“enabledPaymentPIN”: false,
“forgotPINlastSession”: false,
“resetPIN”: false,
“paymentPIN”: “”
},
“eventCategory”: “Pay Bill”,
“nextAction”: “”,
“paymentDollars”: 185,
“paymentCents”: 0,
“selectedPaymentAmount”: “185.00”,
“paymentSpeech”: “Great, you have successfully paid off your full balance.”,
“paymentOrder”: {
“id”: “STEVETEST111601584185”,
“cart”: {
“merchant”: {
“id”: “p_s_e_g_li”,
“name”: “PSEG Long Island”
},
“lineItems”: [
{
“name”: “Payment Amount”,
“id”: “pseg_li_payment”,
“price”: {
“amount”: {
“currencyCode”: “USD”,
“nanos”: 0,
“units”: “185”
},
“type”: “ACTUAL”
},
“quantity”: 1,
“subLines”: [],
“type”: “REGULAR”
}
],
“notes”: “This payment will be applied to the balance of $185 due on your account.”,
“otherItems”: []
},
“otherItems”: [
{
“name”: “Subtotal”,
“id”: “subtotal”,
“price”: {
“amount”: {
“currencyCode”: “USD”,
“nanos”: 0,
“units”: “185”
},
“type”: “ESTIMATE”
},
“type”: “SUBTOTAL”
},
{
“name”: “Tax”,
“id”: “tax”,
“price”: {
“amount”: {
“currencyCode”: “USD”,
“nanos”: 0,
“units”: 0
},
“type”: “ESTIMATE”
},
“type”: “TAX”
}
],
“totalPrice”: {
“amount”: {
“currencyCode”: “USD”,
“nanos”: 0,
“units”: “185”
},
“type”: “ESTIMATE”
}
}
}
},
{
“name”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_intent_transaction_decision”,
“parameters”: {
“TRANSACTION_DECISION_VALUE”: {
@type”: “type.googleapis.com/google.actions.v2.TransactionDecisionValue”,
“userDecision”: “ORDER_ACCEPTED”,
“order”: {
“finalOrder”: {
“cart”: {
“merchant”: {
“id”: “p_s_e_g_li”,
“name”: “PSEG Long Island”
},
“notes”: “This payment will be applied to the balance of $185 due on your account.”,
“lineItems”: [
{
“name”: “Payment Amount”,
“type”: “REGULAR”,
“id”: “pseg_li_payment”,
“quantity”: 1,
“price”: {
“type”: “ACTUAL”,
“amount”: {
“currencyCode”: “USD”,
“units”: “185”
}
}
}
]
},
“otherItems”: [
{
“name”: “Subtotal”,
“type”: “SUBTOTAL”,
“id”: “subtotal”,
“price”: {
“type”: “ESTIMATE”,
“amount”: {
“currencyCode”: “USD”,
“units”: “185”
}
}
},
{
“name”: “Tax”,
“type”: “TAX”,
“id”: “tax”,
“price”: {
“type”: “ESTIMATE”,
“amount”: {
“currencyCode”: “USD”
}
}
}
],
“totalPrice”: {
“type”: “ESTIMATE”,
“amount”: {
“currencyCode”: “USD”,
“units”: “185”
}
},
“id”: “STEVETEST111601584185”
},
“googleOrderId”: “10230017607066609437”,
“orderDate”: “2020-10-01T20:29:50.870Z”,
“paymentInfo”: {
“displayName”: “Bank Account Ending in 6240”,
“paymentType”: “BANK”
}
},
“checkResult”: {
“resultType”: “OK”
}
},
“text”: “”
}
},
{
“name”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/system_counters”,
“parameters”: {
“no-input”: 0,
“no-match”: 0
}
}
],
“intent”: {
“name”: “projects/pseg-long-island/agent/intents/5c42a86e-abfb-4b1c-bee8-75b7840efa56”,
“displayName”: “ON_TRANSACTION”
},
“intentDetectionConfidence”: 1,
“languageCode”: “en”
},
“originalDetectIntentRequest”: {
“source”: “google”,
“version”: “2”,
“payload”: {
“user”: {
“accessToken”: “eyJ1c2VyX3R6IjoiQW1lcmljYVwvUGFuYW1hIiwic3ViIjoiU1RFVkVURVNUMTEiLCJ1c2VyX2xvY2FsZSI6ImVuIiwiaWRwX25hbWUiOiJsb2NhbElEUCIsInVzZXIudGVuYW50Lm5hbWUiOiJpZGNzLTliM2JjOTVjN2MyNzQ4ODJiY2Y2NGNhNzIzZjBhY2JiIiwiaWRwX2d1aWQiOiJsb2NhbElEUCIsImFtciI6WyJVU0VSTkFNRV9QQVNTV09SRCJdLCJpc3MiOiJodHRwczpcL1wvaWRlbnRpdHkub3JhY2xlY2xvdWQuY29tXC8iLCJ1c2VyX3RlbmFudG5hbWUiOiJpZGNzLTliM2JjOTVjN2MyNzQ4ODJiY2Y2NGNhNzIzZjBhY2JiIiwiY2xpZW50X2lkIjoiMzMzOGZlYzlmN2QyNGI5OWIyYTk4NzZiZGI3NTgyZjQiLCJzdWJfdHlwZSI6InVzZXIiLCJzY29wZSI6InVybjpvcGM6aWRtOnQuc2VjdXJpdHkuY2xpZW50IG9mZmxpbmVfYWNjZXNzIHVybjpvcGM6aWRtOnQub2F1dGhjb25zZW50cyB1cm46b3BjOmlkbTp0LnVzZXIubWUiLCJjbGllbnRfdGVuYW50bmFtZSI6ImlkY3MtOWIzYmM5NWM3YzI3NDg4MmJjZjY0Y2E3MjNmMGFjYmIiLCJ1c2VyX2xhbmciOiJlbiIsInVzZXJBcHBSb2xlcyI6WyJBdXRoZW50aWNhdGVkIl0sImV4cCI6MTYwMTU4Nzc2NCwia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PMhHeeD4N0VRI6PIXQeBwuBm4V46X446O2igNVNvUZY1lxveXLVdHYlKqekjmJRZQVWhKDEYJla1VkO1dSHFpQ-rxQ2q_BzexzqHbkcbhmvMITpW81qEN6U0Ku9lVaf6DxN-ZlRtjUnw7i9Nm_noNIZOih-u5h3kaUYj_YRsXh_UEVSKhxOwWPqxymBrMGmmh3Ztkd9T8ckvtJhjw2AW8kW_YLHLIOHxJK-9IJ0NOZPr04zYC_mu_y677E-KKyPg3IeH_ZiZPuLKQ7TZ59af1ntw71dVHC0rOnHk5ZhDp6jCmL3cXRdxbahvp_MesyrbZPkTXQG4Z13pw”,
“permissions”: [
“UPDATE”
],
“locale”: “en-US”,
“lastSeen”: “2020-10-01T20:29:45Z”,
“userStorage”: “{“userId”:“463c47a9-1f06-404e-badf-e2625cdebd6d”}”,
“userVerificationStatus”: “VERIFIED”
},
“conversation”: {
“conversationId”: “ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA”,
“type”: “ACTIVE”,
“conversationToken”: “[”_jovo_session_zolia"]"
},
“inputs”: [
{
“intent”: “actions.intent.TRANSACTION_DECISION”,
“rawInputs”: [
{}
],
“arguments”: [
{
“name”: “TRANSACTION_DECISION_VALUE”,
“extension”: {
@type”: “type.googleapis.com/google.actions.v2.TransactionDecisionValue”,
“userDecision”: “ORDER_ACCEPTED”,
“order”: {
“finalOrder”: {
“cart”: {
“merchant”: {
“id”: “p_s_e_g_li”,
“name”: “PSEG Long Island”
},
“notes”: “This payment will be applied to the balance of $185 due on your account.”,
“lineItems”: [
{
“name”: “Payment Amount”,
“type”: “REGULAR”,
“id”: “pseg_li_payment”,
“quantity”: 1,
“price”: {
“type”: “ACTUAL”,
“amount”: {
“currencyCode”: “USD”,
“units”: “185”
}
}
}
]
},
“otherItems”: [
{
“name”: “Subtotal”,
“type”: “SUBTOTAL”,
“id”: “subtotal”,
“price”: {
“type”: “ESTIMATE”,
“amount”: {
“currencyCode”: “USD”,
“units”: “185”
}
}
},
{
“name”: “Tax”,
“type”: “TAX”,
“id”: “tax”,
“price”: {
“type”: “ESTIMATE”,
“amount”: {
“currencyCode”: “USD”
}
}
}
],
“totalPrice”: {
“type”: “ESTIMATE”,
“amount”: {
“currencyCode”: “USD”,
“units”: “185”
}
},
“id”: “STEVETEST111601584185”
},
“googleOrderId”: “10230017607066609437”,
“orderDate”: “2020-10-01T20:29:50.870Z”,
“paymentInfo”: {
“displayName”: “Bank Account Ending in 6240”,
“paymentType”: “BANK”
}
},
“checkResult”: {
“resultType”: “OK”
}
}
},
{
“name”: “text”
}
]
}
],
“surface”: {
“capabilities”: [
{
“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.AUDIO_OUTPUT”
},
{
“name”: “actions.capability.SCREEN_OUTPUT”
},
{
“name”: “actions.capability.WEB_BROWSER”
}
]
}
],
“requestType”: “SIMULATOR”
}
},
“session”: “projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA”
}


#4

Thank you. Could you please format the JSON. It’s a bit hard to read :slight_smile:


#5

Sorry! I hope this helps, thank you for the patience!

{
    "responseId": "8d0fa45e-ce31-4074-9857-778ed9418403-f1e7b32a",
    "queryResult": {
        "queryText": "actions_intent_TRANSACTION_DECISION",
        "parameters": {},
        "allRequiredParamsPresent": true,
        "fulfillmentMessages": [
            {
                "text": {
                    "text": [
                        ""
                    ]
                }
            }
        ],
        "outputContexts": [
            {
                "name": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_media_response_audio"
            },
            {
                "name": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_account_linking"
            },
            {
                "name": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_screen_output"
            },
            {
                "name": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_capability_audio_output"
            },
            {
                "name": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/_jovo_session_zolia",
                "parameters": {
                    "GAUser": "463c47a9-1f06-404e-badf-e2625cdebd6d",
                    "voicePlatform": "Google",
                    "userInformation": {
=                        "customerName": "John",
                        "userName": "STEVETEST11",
                        "accountInformation": {
                            "directPayEnrollmentStatus": false,
                            "paperlessBilling": true,
                            "contactPhoneNumber": {
                                "profileTelephoneNumber": {
                                    "areaCode": "631",
                                    "cityCode": "974",
                                    "countryCode": "1",
                                    "localNumber": "3621",
                                    "telephoneUsage": "contact"
                                }
                            }
                        },
                        "customerType": "Residential"
                    },
                    "pinState": {
                        "pinValidated": false,
                        "changePaymentPIN": false,
                        "hasBeenPromptedForPIN": false,
                        "enabledPaymentPIN": false,
                        "forgotPINlastSession": false,
                        "resetPIN": false,
                        "paymentPIN": ""
                    },
                    "eventCategory": "Pay Bill",
                    "nextAction": "",
                    "paymentDollars": 185,
                    "paymentCents": 0,
                    "selectedPaymentAmount": "185.00",
                    "paymentSpeech": "Great, you have successfully paid off your full balance.",
                    "paymentOrder": {
                        "id": "STEVETEST111601584185",
                        "cart": {
                            "merchant": {
                                "id": "p_s_e_g_li",
                                "name": "PSEG Long Island"
                            },
                            "lineItems": [
                                {
                                    "name": "Payment Amount",
                                    "id": "pseg_li_payment",
                                    "price": {
                                        "amount": {
                                            "currencyCode": "USD",
                                            "nanos": 0,
                                            "units": "185"
                                        },
                                        "type": "ACTUAL"
                                    },
                                    "quantity": 1,
                                    "subLines": [],
                                    "type": "REGULAR"
                                }
                            ],
                            "notes": "This payment will be applied to the balance of $185 due on your account.",
                            "otherItems": []
                        },
                        "otherItems": [
                            {
                                "name": "Subtotal",
                                "id": "subtotal",
                                "price": {
                                    "amount": {
                                        "currencyCode": "USD",
                                        "nanos": 0,
                                        "units": "185"
                                    },
                                    "type": "ESTIMATE"
                                },
                                "type": "SUBTOTAL"
                            },
                            {
                                "name": "Tax",
                                "id": "tax",
                                "price": {
                                    "amount": {
                                        "currencyCode": "USD",
                                        "nanos": 0,
                                        "units": 0
                                    },
                                    "type": "ESTIMATE"
                                },
                                "type": "TAX"
                            }
                        ],
                        "totalPrice": {
                            "amount": {
                                "currencyCode": "USD",
                                "nanos": 0,
                                "units": "185"
                            },
                            "type": "ESTIMATE"
                        }
                    }
                }
            },
            {
                "name": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/actions_intent_transaction_decision",
                "parameters": {
                    "TRANSACTION_DECISION_VALUE": {
                        "@type": "type.googleapis.com/google.actions.v2.TransactionDecisionValue",
                        "userDecision": "ORDER_ACCEPTED",
                        "order": {
                            "finalOrder": {
                                "cart": {
                                    "merchant": {
                                        "id": "p_s_e_g_li",
                                        "name": "PSEG Long Island"
                                    },
                                    "notes": "This payment will be applied to the balance of $185 due on your account.",
                                    "lineItems": [
                                        {
                                            "name": "Payment Amount",
                                            "type": "REGULAR",
                                            "id": "pseg_li_payment",
                                            "quantity": 1,
                                            "price": {
                                                "type": "ACTUAL",
                                                "amount": {
                                                    "currencyCode": "USD",
                                                    "units": "185"
                                                }
                                            }
                                        }
                                    ]
                                },
                                "otherItems": [
                                    {
                                        "name": "Subtotal",
                                        "type": "SUBTOTAL",
                                        "id": "subtotal",
                                        "price": {
                                            "type": "ESTIMATE",
                                            "amount": {
                                                "currencyCode": "USD",
                                                "units": "185"
                                            }
                                        }
                                    },
                                    {
                                        "name": "Tax",
                                        "type": "TAX",
                                        "id": "tax",
                                        "price": {
                                            "type": "ESTIMATE",
                                            "amount": {
                                                "currencyCode": "USD"
                                            }
                                        }
                                    }
                                ],
                                "totalPrice": {
                                    "type": "ESTIMATE",
                                    "amount": {
                                        "currencyCode": "USD",
                                        "units": "185"
                                    }
                                },
                                "id": "STEVETEST111601584185"
                            },
                            "googleOrderId": "10230017607066609437",
                            "orderDate": "2020-10-01T20:29:50.870Z",
                            "paymentInfo": {
                                "displayName": "Bank Account Ending in 6240",
                                "paymentType": "BANK"
                            }
                        },
                        "checkResult": {
                            "resultType": "OK"
                        }
                    },
                    "text": ""
                }
            },
            {
                "name": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA/contexts/__system_counters__",
                "parameters": {
                    "no-input": 0,
                    "no-match": 0
                }
            }
        ],
        "intent": {
            "name": "projects/pseg-long-island/agent/intents/5c42a86e-abfb-4b1c-bee8-75b7840efa56",
            "displayName": "ON_TRANSACTION"
        },
        "intentDetectionConfidence": 1,
        "languageCode": "en"
    },
    "originalDetectIntentRequest": {
        "source": "google",
        "version": "2",
        "payload": {
            "user": {
                "accessToken": "eyJ1c2VyX3R6IjoiQW1lcmljYVwvUGFuYW1hIiwic3ViIjoiU1RFVkVURVNUMTEiLCJ1c2VyX2xvY2FsZSI6ImVu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UPDATE"
                ],
                "locale": "en-US",
                "lastSeen": "2020-10-01T20:29:45Z",
                "userStorage": "{\"userId\":\"463c47a9-1f06-404e-badf-e2625cdebd6d\"}",
                "userVerificationStatus": "VERIFIED"
            },
            "conversation": {
                "conversationId": "ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA",
                "type": "ACTIVE",
                "conversationToken": "[\"_jovo_session_zolia\"]"
            },
            "inputs": [
                {
                    "intent": "actions.intent.TRANSACTION_DECISION",
                    "rawInputs": [
                        {}
                    ],
                    "arguments": [
                        {
                            "name": "TRANSACTION_DECISION_VALUE",
                            "extension": {
                                "@type": "type.googleapis.com/google.actions.v2.TransactionDecisionValue",
                                "userDecision": "ORDER_ACCEPTED",
                                "order": {
                                    "finalOrder": {
                                        "cart": {
                                            "merchant": {
                                                "id": "p_s_e_g_li",
                                                "name": "PSEG Long Island"
                                            },
                                            "notes": "This payment will be applied to the balance of $185 due on your account.",
                                            "lineItems": [
                                                {
                                                    "name": "Payment Amount",
                                                    "type": "REGULAR",
                                                    "id": "pseg_li_payment",
                                                    "quantity": 1,
                                                    "price": {
                                                        "type": "ACTUAL",
                                                        "amount": {
                                                            "currencyCode": "USD",
                                                            "units": "185"
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "otherItems": [
                                            {
                                                "name": "Subtotal",
                                                "type": "SUBTOTAL",
                                                "id": "subtotal",
                                                "price": {
                                                    "type": "ESTIMATE",
                                                    "amount": {
                                                        "currencyCode": "USD",
                                                        "units": "185"
                                                    }
                                                }
                                            },
                                            {
                                                "name": "Tax",
                                                "type": "TAX",
                                                "id": "tax",
                                                "price": {
                                                    "type": "ESTIMATE",
                                                    "amount": {
                                                        "currencyCode": "USD"
                                                    }
                                                }
                                            }
                                        ],
                                        "totalPrice": {
                                            "type": "ESTIMATE",
                                            "amount": {
                                                "currencyCode": "USD",
                                                "units": "185"
                                            }
                                        },
                                        "id": "STEVETEST111601584185"
                                    },
                                    "googleOrderId": "10230017607066609437",
                                    "orderDate": "2020-10-01T20:29:50.870Z",
                                    "paymentInfo": {
                                        "displayName": "Bank Account Ending in 6240",
                                        "paymentType": "BANK"
                                    }
                                },
                                "checkResult": {
                                    "resultType": "OK"
                                }
                            }
                        },
                        {
                            "name": "text"
                        }
                    ]
                }
            ],
            "surface": {
                "capabilities": [
                    {
                        "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.AUDIO_OUTPUT"
                        },
                        {
                            "name": "actions.capability.SCREEN_OUTPUT"
                        },
                        {
                            "name": "actions.capability.WEB_BROWSER"
                        }
                    ]
                }
            ],
            "requestType": "SIMULATOR"
        }
    },
    "session": "projects/pseg-long-island/agent/sessions/ABwppHFzSIMSNCJ8A2aFKRrRBmESa8TgkslqdMWege_L1CmXpZX0O8THaY5vvFflFQ7Xgf8bes73HH0lXoPxAA"
}

#6

I think I may have found the issue here:

I’m not sure why, but you can see in the @type argument that it’s calling google.actions.v2. Then when I look in the jovo-core dist/src folder, I noticed that the getTransactionDecisionResult() function was looking for an attribute “extension.transactionDecision”.

When you look at the request I posted above, you can clearly see in the arguments array, “extension.userDecision”. I think this was the cause of my issue.

For a temporary work around, I’ve just overwritten the getTransactionDecisionResult() method in my own helperFunctions class, and am using that to access the userDecision value from the request.


#7

Yes, that was the issue. Fixed it an hour ago and it took me one hour to publish the package. Slow PC, Git issues, Lerna issues. :smiley:

Please run jovo update in your project folder.


#8

I now get this error just trying to open the Action:

"Error: Cannot find module './dist/cjs/i18next.js'\nRequire stack:\n- /opt/nodejs/node_modules/i18next/index.js\n- /opt/nodejs/node_modules/jovo-core/dist/src/plugins/I18Next.js\n- /opt/nodejs/node_modules/jovo-core/dist/src/plugins/ComponentPlugin.js\n- /opt/nodejs/node_modules/jovo-core/dist/src/core/BaseApp.js\n- /opt/nodejs/node_modules/jovo-core/dist/src/index.js\n- /opt/nodejs/node_modules/jovo-framework/dist/src/index.js\n- /var/task/index.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js"


#9

Let me apologize - not sure what was wrong in my Cloud Environment but things are working as expected now!!

Thank you so much Alex for your help here, this was such a cool experience and I’m really glad that you were to help.