You can record App Store and Play Store subscriptions and verify their validity with the Adjust SDK. After the user purchases a subscription, create an AdjustAppStoreSubscription or AdjustPlayStoreSubscription instance containing the details.
1. Instantiate a subscription object
To get started, you need to create a subscription object containing details of the subscription purchase.
Set the setTransactionDate property of your AdjustAppStoreSubscription instance to record the timestamp of the subscription.
Set the PurchaseTime property of your AdjustPlayStoreSubscription instance to record the timestamp of the subscription.
Record the purchase region (iOS only)
You can record the region in which the user purchased a subscription. To do this, set the SalesRegion property of your AdjustPlayStoreSubscription instance to the country code as a string. This needs to be formatted as the countryCode of the Storefront object.
Add callback parameters
You can add callback parameters to your subscription object. The SDK appends these parameters to your callback URL. To add callback parameters, call the AddCallbackParameter method on your subscription object. You can add multiple callback parameters by calling this method multiple times.
You can add partner parameters to your subscription object. The SDK sends these to Adjust’s servers when the user purchases a subscription. Adjust’s servers forward the information on to your network partner. To add partner parameters, call the AddPartnerParameter method on your subscription object. You can add multiple partner parameters by calling this method multiple times.