Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README.md about potential Q&A issue #475

Merged
merged 3 commits into from May 4, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -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({
Expand Down Expand Up @@ -345,6 +345,10 @@ 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 this.
hyochan marked this conversation as resolved.
Show resolved Hide resolved
- Related issue in [#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.
Expand Down