Search Unity

Question Questions about "Querying orders" server-side validation

Discussion in 'Unity Distribution Portal (UDP)' started by Petr777, Oct 14, 2020.

  1. Petr777

    Petr777

    Joined:
    Nov 8, 2017
    Posts:
    49
    The docs has the following remark about querying orders:

    "The API can return an "unconfirmed" status for the following reasons:
    • The store can’t get the order status at this time
    • The store doesn't support real-time order status query
      In this case, retry the QueryOrder API with an interval. The store will send a callback (in near real-time) to UDP and UDP can return the status to the game."
    1. Which stores support real-time order status query ?
    2. Should we retry if store doesn't support real-time order status query, as mentioned in last line?
    3. In which case "status" field of response will contain STORE_NOT_SUPPORT value? What is a difference between UNCONFIRMED in case of "store doesn't support real-time order status query" and STORE_NOT_SUPPORT values of the "status" field?

    Thank you!
     
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    1. Which stores support real-time order status query?
    Developers doesn't need to know which stores support this because UDP will process it and return the correct orders to you.

    2. Should we retry if store doesn't support real-time order status query, as mentioned in last line?
    Yes, please retry it. We recommend setting a retry timeout, such as not retrying after more than 30 minutes, and not granting the product to the user this time. Check again when the user launches the game next time.

    3. In which case "status" field of response will contain STORE_NOT_SUPPORT value? What is a difference between UNCONFIRMED in case of "store doesn't support real-time order status query" and STORE_NOT_SUPPORT values of the "status" field?
    As mentioned before, this is more of a communication problem between the UDP server and the store, and the developer only needs to retry.