how to enable/disable pop window display orders for placing the order

sunilx
sunilx edited January 7 in Kite Publisher
Hello,
i am trying to use the feature as mentioned here (https://kite.trade/docs/connect/v3/basket/).
Problem 1 - Every time i submit the form, it is launching a new pop. is there a way to control it? Because once order is prepared on client side and submitted many a times there is no point of having an extra step to place the order. pop is useful while debugging the code in case order prepared is same as what is being sent.

Problem 2 - On the Publisher Plugin site (https://kite.trade/docs/connect/v3/publisher/ ), there is KiteConnect Interface to submit orders. Here also same problem, it is launching a pop up.

How to disable the pop and directly submit the order?

PS: i noticed your_basket json need to be stringify before submitting else it throws invalid payload error. https://kite.trade/docs/connect/v3/basket/. maybe update documentation.
  • sujith
    sujith edited January 7
    If you are using a publisher then the order is always placed via Kite web and not a third-party app.
    You can check out the demo here.
  • sujith
    i noticed your_basket json need to be stringify before submitting else it throws invalid payload error. https://kite.trade/docs/connect/v3/basket/. maybe update documentation.
    If you are making an HTTP request then the payload is a string, right? What other formats would you use?
  • sunilx
    Hello,
    i had seen the link, it did not give any idea how to fix the pop up problem. When we submit the orders, internally it goes via kite web only. Could you share the code to click on the place button of the pop page programatically.
  • sunilx
    code given on this forum link suggests to use stringify. https://kite.trade/forum/discussion/5462/offsite-order-error.

    when i used the code given here (https://kite.trade/docs/connect/v3/basket/), it threw invalid payload error. once i place stringify like this (document.getElementById("basket").value =JSON.stringify(your_basket);), it worked.
Sign In or Register to comment.