The ONE store In‑App Purchases (IAP) SDK allows you to integrate and offer in‑app purchases through ONE store. For the US region, the IAP SDK currently only supports in‑app purchase of items (Managed Items). Support for in-app purchases of Subscriptions is planned for a future release.
To integrate IAP items for the US region, complete the following tasks:
- Integrate IAP SDK version 21.02.00 or later.
For more information about integrating the IAP SDK, see ONE store IAP API V7 (SDK V21) Guide in the ONE store documentation. - Register your IAP items in the ONE store Developer Center.
For more information about registering IAP items in the ONE store Developer Center, see Registering IAP Items. - Perform virtual test purchases of each IAP item in ONE store for the US region.
For more information about testing your IAP items for the US region, see Testing IAP Items.
For additional support during your integration process, reference the sample integration of the IAP SDK on GitHub or reach out to the ONE store Technical Support team.
AndroidManifest.xml
While integrating the IAP SDK into your app and testing IAP items for the US region, modify your AndroidManifest.xml
file to use developer options and ONE store for the US region.
The following sample AndroidManifest.xml
file provides the following functions:
- The
<queries>
tag contains information to connect to the ONE store app. For more information, see <queries> Setting in the ONE store documentation. - The
<application>
tag contains the metadata values to connect as a developer to ONE store for the US region. For more information, see Setting Developer Options for Store Selection in the ONE store documentation.
Important
The <application>
tag is only needed during integration and testing. Do not include this tag in your production build.
<manifest>
<queries>
<intent>
<action android:name="com.onestore.ipc.iap.IapService.ACTION" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="onestore" />
</intent>
</queries>
<application>
<meta-data android:name="onestore:dev_option" android:value="onestore_02" />
</application>
</manifest>