PeterStaev / nativescript-purchase

:moneybag: A NativeScript plugin for making in-app purchases!
Apache License 2.0
83 stars 28 forks source link

How to get refunded products? #104

Closed dacalleg closed 3 years ago

dacalleg commented 4 years ago

There seems to be no way to get the list of products that have been reimbursed. How can you get it?

PeterStaev commented 4 years ago

Hey @dacalleg ,

I haven't personally handled refunds, but from what I see for Apple people recommend to call restore purchases, which should not have the refunded product.

For android you should get a Refunded state transaction at some point.

Hope this helps.

dacalleg commented 4 years ago

I have made a purchase, refund It using oreder management in Play Store and call restorePurchase() method(after One day). It returned an object that contains original tranaction: purchased and transaction: restored. I see that in the code the transaction: restored Is hardcoded.

PeterStaev commented 4 years ago

From what I see from other users the Android refunds can take up to 3 days to be reflected: https://stackoverflow.com/questions/13861625/in-app-billing-v3-dont-detect-refund

PeterStaev commented 3 years ago

No further response so closing this one for now. In case you still have problems, please provide more details.