Skip to content
This repository was archived by the owner on Oct 20, 2020. It is now read-only.

Commit 299fef0

Browse files
committed
Merge pull request #13 from sercanov/testing-with-iab-products
Added testing instructions with real in-app products
2 parents 0b7b3e1 + 976c713 commit 299fef0

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ In order to do this send in `null` as parameter, along with your Activity-instan
110110

111111
[See the Google Play docs for more info on static responses](http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-static).
112112

113+
## Testing with your own In-App Products
114+
You can always test with static responses but it has limited functionalities. Testing with real in-app products will be like production. Before all, you'll need to do the following ;
115+
* I assume you've already created your Google Play Developer account and an application draft.
116+
* Now you need to create In-app Products at Play Developer Console and activate it ( a button at the top right )
117+
* Then you can write the JS codes like explained in Javascript API section, I suggest you to use `getProductDetails` function to see if it's working properly.
118+
* After you ready to test, you'll need to properly create a signed APK. You can follow the guide [here](https://facebook.github.io/react-native/docs/signed-apk-android.html).
119+
* When you have the APK, you need to upload it to Play Developer Console, Alfa or Beta section will be OK.
120+
* After uploading process, you have to publish it to market. Don't worry, if your APK belongs in Alfa or Beta section, publishing will not be available for general public. ( It could take 1 - 2 hours process APK by Google )
121+
* The final part is, you'll need to create a Open Beta Testing or Open Alfa Testing. So console will give you a signup URL after you approved open testing. Now put this URL in the browser of your **testing device** (it must be a physical device, not a emulator ) signup from the URL and download the app where it redirected.
122+
* Try to buy something with Open Beta User, it will ask your credit cart details but you will not be charged.
123+
124+
113125
## Javascript API
114126
All methods returns a `Promise`.
115127

@@ -322,4 +334,4 @@ InAppBilling.getSubscriptionTransactionDetails('android.test.subscription')
322334
.then((details) => {
323335
console.log(details)
324336
});
325-
```
337+
```

0 commit comments

Comments
 (0)