If you’ve enabled purchase verification, you can use the Adjust SDK to request purchase verification.
When you send purchase information with the Adjust SDK, Adjust does the following:
Sends the information to the relevant store and waits for a status response.
Forwards the status response to the Adjust SDK.
You can access the purchase verification status by using a callback. Results are returned as AdjustPurchaseVerificationResult objects containing the following properties:
verificationStatus (string): The status of the purchase.
code (number): The status code of the purchase.
message (string): Any message returned by the store.
There are two ways to verify purchases with the Adjust SDK.
Verify purchase and record event
With this approach, you will be performing verification of your purchase and having an event recorded for that verification. This will give you an overview later in the dashboard on the events (and assigned revenue) based on whether verification was successful or not.
In order to do this, you need to complete your in-app purchase and then pass parameters that Adjust SDK needs out of that purchase in order to be able to try to verify the purchase. Once you have obtained the verification parameters the SDK needs, you can perform verification and recording of an event by calling verifyAndTrackAppStorePurchase or verifyAndTrackPlayStorePurchase methods.
Next to revenue and currency of the purchase, you need to obtain the following parameters as well:
Product ID (for both, App Store and Play Store purchases)
In case you don’t want to see revenue events being automatically recorded once you verify the purchase, but you are instead interested in just getting the information on the validity of the purchase, you can also perform only the verification of the purchase. For this, you need to invoke verifyAppStorePurchase and verifyPlayStorePurchase methods.