eBay - Send Command Message

    eBay - Send Command Message


    The content is currently unavailable in Ja - 日本語. You are viewing the default Korean version.
    記事の要約

    eBay - Send Command Message

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

    const command = "COMMAND HERE"; const payload = { key: "KEY", value: "VALUE" }; window[ShoplivePlayer]("send", "SEND_COMMAND_MESSAGE", { command, payload });



    Commands

    commandpayloaddescription
    CUSTOM_CONTEXT_STARTN/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_ENDN/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.