To prepare for integrating IAP features and testing the integration, perform the following.
Create a project in Android Studio with a package name that is different from the app registered in other app stores.
If package names are not different, app update malfunctions and problems with marketing and promotional support may occur.
Add these permissions to AndroidManifest.xml:
During IAP integration, you may need to test IAP features.
Samsung IAP needs information about your app and in-app items registered in Seller Portal.
With the com.samsung.android.iap.permission.BILLING permission added to your app’s AndroidManifest.xml file, you can register an incomplete app and one or more in-app items.
Your app does not need to have IAP features integrated in order to register the app and its in-app items.
As IAP integration proceeds, you can upload new versions of your app and new in-app items as needed.
Sign in to Seller Portal using your Samsung account.
Click Add New App
Click Android, select the default language, and click Next.
After entering information in each tab, click Save.
In the Binary tab, upload your app APK.
In the App Information tab, enter fundamental app details.
In the Country / Region & Price tab,
specify a free or paid app, a paid app price, and countries to sell your items.
In the In App Purchase tab, register one or more in-app items:
a. Click Add Item
b. Enter in-app item information.
c. Click Save.
For a subscription item, ensure your item registration information is correct. After saving a subscription item, you can only change its item title.
d. Verify the item is listed
Don't click Submit Beta Test or Submit in this step.
For more app registration details, see the App Registration Guide.
For more in-app item registration details, see the Item Registration Guide.
Download the IAP SDK from this site.
The zipped file contains the SDK and sample projects that uses the IapHelper:
IAP v6.0 is supported since Android API 18 or higher. It does not work properly in lower versions.
Click File → New → Import module.
Select the IAP6Helper folder from the Source Directory, and click Finish.
From Project Explorer, click Open Module Settings or press F4 → Dependencies tab.
Select your app module, and click + → Module Dependency from Declared Dependencies.
Select the IAP6Helper module, and click OK.