You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 20, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,17 +110,16 @@ In order to do this send in `null` as parameter, along with your Activity-instan
110
110
111
111
[See the Google Play docs for more info on static responses](http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-static).
112
112
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
-
113
+
## Testing with your own In-app products
114
+
Testing with static responses is limited, because you are only able to test the purchase-method. Therefore, testing with real In-app products is recommended. But before that is possible, you need to do the following:
115
+
* I will assume you've already created your Google Play Developer account and an application there.
116
+
* Now you need to create In-app Products under your application at PlayDeveloperConsole and activate it (pressthebuttonatthetopright).
117
+
* Assuming you have installed this module (InAppBilling), you can write the JS code as explained in the Javascript API section. I suggest you to use `getProductDetails` function to see if it's the product is retrieved.
118
+
* When you're ready to test, you'll need to properly create a signed APK. You can follow this [guide](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, either the Alpha or the Beta channel will be OK.
120
+
* After uploading, you will have to publish it to the market. Don't worry, when publishing the APK to the Alpha or Beta channel the APK will not be available for general public. (**ImportantÆ*: It might take several hours for Google to process the APK).
121
+
* The final part is, you'll need to create an add testers for the channel you've published to. The web page will give you a signup URL (opt-in) after you've approved open testing. Visit 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 the device. The purchase will eventually be cancelled, but you can also do this manually through your Google Merchant wallet.
0 commit comments