Using the SDKs

Instructions for configuring and using Deepwall SDKs

Deepwall provides an easy-to-implement SDK framework.

By implementing the Deepwall SDK into your app, your app will be enabled for displaying paywalls, offering in-app purchases, validating user receipts, checking subscription statuses, and restoring purchases with no need for any client or server integration to App Store, Google Play Store, or Huawei AppGallery.

Deepwall also automatically integrates your app to attribution providers like Adjust and AppsFlyer for targeting and retargeting your users and logging events.

Core Functions

The Deepwall SDK is mainly responsible for the following functions:

  • Displaying paywalls in the app

  • Integration to mobile platforms to create and restore in-app purchases

  • Purchase receipt validation

  • Subscription status check

  • Integration to attribution providers like Adjust and AppsFlyer

Implementation Steps

1.Initialize Deepwall

After you have completed the SDK installation for your platform, you can import and initialize the Deepwall SDK in your app. See the following guide for initialization.

Initialization

2. Configure User Properties

You need to provide the user properties to Deepwall at the time of configuration and also you should send an update whenever some of the properties change. See the following guide for configuration.

Configuration

3. Request Paywall

After you have initialized and configured SDK with user properties, you are ready to request a paywall anywhere in your app. See the following guide for requesting paywalls.

Requesting Paywalls

4. Handle Purchase Events

Deepwall SDK creates and validates in-app purchases automatically without the need for any code. Deepwall SDK triggers various events while making in-app purchases, which gives you the ability to manage the purchase flow in your app. See the following guide for handling purchase events.

Making Purchases

5. Handle Restore Events

Deepwall SDKs perform restore of purchases automatically without the need for any code. Deepwall SDK triggers events for restoration which gives you the ability to manage purchase flow in your app. See the following guide for handling restore events.

Restoring Purchases

6. Handle the upgrade and downgrade of subscriptions

Even iOS users can manage upgrade/downgrade and crossgrade on App Store directly without the need for developer interaction. For Android apps, app developers can decide to support upgrade, downgrade or both in their apps by selecting their upgrade policy via Deepwall. See the following guide for handling upgrades and downgrades.

Upgrades and Downgrades

7. Handle Non-Subscription Purchases

Deepwall SDKs create and restore in-app purchases for both subscriptions and non-subscription products, and validate user receipts for you without the need for additional code. For consumable products, you need to mark the purchase as consumed for consumable products to be purchased again for Google apps. See the following guide for handling non-subscription purchases.

Non-subscription Purchases

8. Close Paywall

When a purchase is made successfully, you can close the paywall if another purchase cannot be made by users. See the following guide for closing paywalls.

Closing a Paywall

You can check out the following guide to learn about all the events and parameters:

Listening SDK Events

You can also check out the following guide for troubleshooting the most common errors while setting up the in-app purchases and the Deepwall SDK:

Troubleshooting

Last updated