question

jerome avatar image
jerome asked

Testing in skill purchase with alexa developer console

Hi,

I'm implementing the new ISP feature but I can't get it to work in the alexa dev console. The refusal of buying is returning a fine answer and I get the declined message. Here is the code I use to get the purchase, and then I'm always getting the following


resolve(handlerInput.responseBuilder
    .addDirective({
        type: "Connections.SendRequest",
        name: "Upsell",
        payload: {
            InSkillProduct: {
                productId: "###my-product-ID###",
            },
            upsellMessage: "Would you like to buy my product?",
        },
        token: "my-correlation-token",
    })
"request": {
        "type": "Connections.Response",
        "requestId": "amzn1.echo-api.request.1da4e7a3-8be1-4a09-8b56-5cb590db08f4",
        "timestamp": "2019-03-04T03:16:13Z",
        "locale": "en-US",
        "status": {
            "code": "400",
            "message": "BAD REQUEST"
        },
        "name": "Buy",
        "payload": {
            "message": "This feature is not supported."
        },
        "token": "correlationToken"
    }


The documentation does mention shouldEndSession. I added this property as well but got the same result.

I'm not sure if this is related to my amazon dev account which might be a Canadian one. Where could I check that?

alexaisp
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered

You need to make sure the account has a US address tied to it. Try checking the addresses of the accounts that you are testing with - as only en-US is supported as this time, you would need a US account.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.