eBay - Send Command Message

    eBay - Send Command Message


    The content is currently unavailable in English. You are viewing the default Korean version.
    Article summary

    eBay - Send Command Message

    The Send command message function is used to send commands to the Shoplive Player.

    <div class="cm-s-neo" data-testid="SyntaxHighlighter" style="box-sizing:border-box;display:inherit;">const command = "COMMAND HERE";
    const payload = { key: "KEY", value: "VALUE" };
    window[ShoplivePlayer]("send", "SEND_COMMAND_MESSAGE", { command, payload });</div>

    Commands

    Command

    Payload

    Description

    CUSTOM_CONTEXT_START

    N/A

    (Optional) Notify that the external context has started.
    This is to prevent any unnecessary user interface elements from appearing on the Shoplive Player while the external context is active.

    CUSTOM_CONTEXT_END

    N/A

    (Optional) Notify that the external context has ended.

    BID_REQUEST

    {
    "bidPrice": 99.9,
    "productId": "PRODUCT_ID"
    }

    Bid request with the price

    SET_SELLER_SAVED_STATE

    { "saved": true }

    Change the seller saved state.

    COUPON_STATE

    {
    "visible": true,
    "count": 1,
    "message": "You have a coupon!"
    }

    Change the coupon button state.