diff --git a/README.md b/README.md index 201690dad..bb4c8e2eb 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ componentWillUnmount() { Once you have called `getProducts()`, and you have a valid response, you can call `buyProduct()`. Subscribable products can be purchased just like consumable products and users can cancel subscriptions by using the iOS System Settings. ```javascript - try + try { // Will return a purchase object with a receipt which can be used to validate on your server. const purchase = await RNIap.buyProduct('com.example.coins100'); this.setState({ @@ -345,6 +345,9 @@ We've like to update this solution as version changes in `react-native-iap`. - Offical doc is [here](https://developer.android.com/google/play/billing/billing_library_overview). - I've developed this feature for other developers to contribute easily who are aware of these things. The doc says you can also get the `accessToken` via play console without any of your backend server. You can get this by following process. * Select your app > Services & APIs > "YOUR LICENSE KEY FOR THIS APPLICATION Base64-encoded RSA public key to include in your binary". [reference](https://stackoverflow.com/questions/27132443/how-to-find-my-google-play-services-android-base64-public-key). + +#### How to make consumable product in android developer mode? +- If you are facing `"You already own this item"` on developer(test) mode you might check [related issue #126](https://github.com/dooboolab/react-native-iap/issues/126#issuecomment-439084872) #### How do I use react-native-iap in expo? - You should detach from `expo` and get `expokit` out of it.