Skip to content

Parameter Missing or Invalid: Required parameter missing or invalid: channel #924

@AlexTzone

Description

@AlexTzone

We use this version of the code: https://sdks.shopifycdn.com/buy-button/3.0.5/buybutton.js

Just last night, out of nowhere, without any of us changing any of the code, we get this error when customers try to open the checkout window: "Parameter Missing or Invalid: Required parameter missing or invalid: channel".

I edited this line inside the buybutton.js like following:

var webUrl = cart.checkoutUrl;
webUrl = webUrl.replace(/&channel=buy_button/, '');

This line in the url "&channel=buy_button" was caused the issue, now at least the checkout window opens, but it feels sketchy at best. Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions