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

Shared Secret is required for consumable product to validate the receipt?

$
0
0

How can I validate the consumable IAP ? Is it a correct way to validate the consumable product ?

this.purchaseUpdateSubscription = purchaseUpdatedListener((purchase: ProductPurchase ) => {
      const receipt = purchase.transactionReceipt;
      if (receipt) {

        const receiptBody = {
          'receipt-data': purchase.transactionReceipt,
          'password': '************'
        };

        RNIap.validateReceiptIos(receiptBody, false)
            .then((deliveryResult) => {
              if (deliveryResult) {
                 //required stuff...
              }
        }
    }

Viewing all articles
Browse latest Browse all 16747

Trending Articles



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