Search Unity

Question Steam IAP

Discussion in 'Economy' started by spinaljack, Apr 28, 2023.

  1. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    So I've got a plugin that handles Steam IAP and when the successful purchase occurs I run add some currency using Unity Economy but what happens if the game crashes between making the purchase and my adding the currency?

    How do other people handle this scenario?
     
  2. Arnaud_Gorain

    Arnaud_Gorain

    Unity Technologies

    Joined:
    Jun 28, 2022
    Posts:
    182
    Hi @spinaljack,
    If the game crash before a call to the economy SDK or API, then no actions will happen from the Economy side. You might want to think about a retry mechanism and a good management of the transaction status. This goes the same for restoring purchases.