chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

receiptData returns old receipt #167

Open jianpingw opened 6 years ago

jianpingw commented 6 years ago

When testing in sandbox mode (with auto-renewal subscription), the receipt returned from receiptData is always the old receipt, even though the old one has been cancelled and I have purchased new subscription.

I tried to reinstall the app, reboot the phone, logout and login iTunes, but nothing help. I still get the very first receipt.

jianpingw commented 6 years ago

Similar problem has been reported by @itinance: https://github.com/chirag04/react-native-in-app-utils/issues/25

alexrussell commented 6 years ago

I think the lib needs to implement a call to SKReceiptRefreshRequest before returning the receipt data?

See Refreshing the App Receipt