Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Problem with react-native InAppUtils.receiptData

$
0
0

I use the react-native-in-app-utils (6.0.2) component in my react-native app. After upgrading a lot of components and libraries I'm unable to get the users receiptData using the InAppUtils.receiptData() function. Before upgrade this works fine.

After running

InAppUtils.receiptData((error, receiptData)=> {
  if(error) {
    Alert.alert('itunes Error', 'Receipt not found.');
  } else {
    // receiptData is undefined/empty and I'am therefore unable to verify the receipe with the users iTunes-account.
  }
});

receiptData is undefined/empty and I'am therefore unable to verify the receipe with the users iTunes-account.

Before trying to get the receipt I run InAppUtils.loadProducts(..) which works fine, I get all my products.

Any suggestions?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>