react-native-iap: iOS Receipt Lost - Don't get saved in DB

Version of react-native-iap

“react-native-iap”: “^4.4.1”,

Version of react-native

“react-native”: “https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz”, (ExpoKit)

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

How to get last receipt Trasaction (only one).

Actual behavior

Get latest and active one transaction receipt details (JSON)

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

After calling await RNIap.requestPurchase(productID); and getting payment I’m saving the results in my DB based on the userID. However, while taking payment, due to some reason I’m not able to save that in my DB and the payment get successful.

I know we can get the all receipts with getAvailablePurchases(). But it’s like it will load 100s of data (if its available). How to get the recent active transaction details with receipt?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Well, So 4.4.3 is stable to downgrade to it? Thanks.

Edit

The problem solved #1020 😄