Creating In-App Purchases for Virtual Currency on the Google Play Store
Instructions
Navigate to Google Play Console and sign into your developer account.
Select the app desired.
On the left navigation panel, select
Store presence
, then selectIn-app products
.Within
In-app products
, selectADD NEW PRODUCT
to launch the product creation modal.Select
MANAGED PRODUCT
and fill in theProduct ID
field. Then selectCONTINUE
to proceed to Managed product details.Fill in the
Title
andDescription
fields. Select the pricing template underPricing
.Select
SUBMIT UPDATE
at the top of the page.Select the
Inactive
drop-down (found belowSUBMIT UPDATE
), and set the product status toActive
.Under Developer Tools > Services & APIs find the section "Licensing & in-app billing". Locate the Base64-encoded RSA public key. Copy the key. (See screenshot below - the key is in the censored area)
Open your Android project in Android Studio. In the project's
strings.xml
add a string element:
<resources>
<string name="SKILLZ_GOOGLE_PLAY_LICENSE_KEY">YourKey</string>
</resources>
Where "YourKey" is the key copied from the dashboard. Note: Make sure there are no spaces.