Search Unity

Re-purchase refunded non-consumable google play IAP.

Discussion in 'Unity IAP' started by ClientUser, May 19, 2020.

  1. ClientUser

    ClientUser

    Joined:
    Mar 7, 2017
    Posts:
    3
    Hi all..

    I'm building an app for the Google Play Store only.

    I've figured out how to imitate restore purchase by catching duplicate purchase errors - which is great, when I wipe all app data, my app still lets you enjoy a non-consumable by detecting a duplicate purchase.

    I've moved on to trying to re-purchase a refunded non-consumable.

    On refund, the product still shows as a duplicate purchase and gives the product back for free!!!

    I've done some googling, and really it feels like I should just accept that users who get a refund continue to enjoy the product.

    Any tips?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You should never receive duplicate purchase errors. Non-consumable receipts will be in your product controller. Google automatically handles restore for you and will auto-fire ProcessPurchase on first app launch after a reinstall. No extra code is needed to handle restore if you have the original purchase flow already coded. Please compare to the Sample IAP project here https://forum.unity.com/threads/sample-iap-project.529555/ and https://docs.unity3d.com/Manual/UnityIAPRestoringTransactions.html
     
    Abolfazl2017 likes this.