Skip to content

Enable Donations

Lumiq Creative edited this page May 2, 2020 · 1 revision

Enable Billing Permission

This requires editing two files.

Enable com.android.vending.BILLING

In /app/src/main/AndroidManifest.xml, find the following:

<!-- <uses-permission android:name="com.android.vending.BILLING" /> -->

Remove the comment marks (<!-- and -->).

Set billingEnabled to true

Navigate to MainActivity.kt, located in your package directory. Find the following:

override val billingEnabled = false

Replace false with true.

Add Products

New to Products?
See the documentation to get started.

In /app/src/main/res/values/dashboard_setup.xml, find the following:

<string-array name="donation_items">
    <item></item>
</string-array>

Add Product IDs, defined in Google Play Console, to string-array—each as item. For example:

<string-array name="donation_items">
    <item>small-donation</item>
    <item>standard-donation</item>
    <item>large-donation</item>
</string-array>
Clone this wiki locally