How to return the products owned by the user?

Hello,

I want to restore user’s purchases, how to return the products owned by the user?

Google In-app Billing Reference shows ‘getPurchases’. 

http://developer.android.com/google/play/billing/billing_reference.html#getPurchases

IOS has restoreCompletedTransactions()

https://developer.apple.com/library/ios/documentation/StoreKit/Reference/SKPaymentQueue_Class/index.html#//apple_ref/occ/instm/SKPaymentQueue/restoreCompletedTransactions

How to do this with Corona SDK?

See below for the documentation for restoring purchases:

https://docs.coronalabs.com/daily/guide/monetization/IAP/index.html#restoring-purchased-items

Thank you very much. 

So, I don’t need to store transaction identifier in my own database?

In this old thread, Rob Miracle says: “I think we would highly recommend that you do”.
https://forums.coronalabs.com/topic/36023-restoring-in-app-purchase/

See below for the documentation for restoring purchases:

https://docs.coronalabs.com/daily/guide/monetization/IAP/index.html#restoring-purchased-items

Thank you very much. 

So, I don’t need to store transaction identifier in my own database?

In this old thread, Rob Miracle says: “I think we would highly recommend that you do”.
https://forums.coronalabs.com/topic/36023-restoring-in-app-purchase/