My app offers user to subscript vip & buy gems gem (consumable). After purchase succeed, the receipt will be sent to my backend in order to update the gem amount record.
There's a checking for updating the gems number on database.
However, I find that there're two problems
- there's only the latest consumable history. The second time buying the gem will erase the previous record.
- after subscription / renew subscription, the consumable record is gone
I'm using sandbox environment. Do 1 & 2 still exist on Real situation? If 1 & 2 still exist on real situation, I've no idea to update the gem if the network fail (network fail: can't get the receipt after purchase gem, at the same time the renew subscription make the get purchase record disappear)