- About the service
- Changelog
- A/B experiments in Varioqub β
- Managing app access
- Platforms
Android iOS- Changelog
- SDK integration
- Usage examples
- Tracking user activity
- Analysis of app crashes
- Device identification using a vendor keychain
- Universal link support
- YMMAdRevenueInfo class
- YMMECommerce class
- YMMECommerceAmount class
- YMMECommerceCartItem class
- YMMECommerceOrder class
- YMMECommercePrice class
- YMMECommerceProduct class
- YMMECommerceReferrer class
- YMMECommerceScreen class
- YMMError class
- YMMMutableAdRevenueInfo class
- YMMMutableReporterConfiguration class
- YMMMutableRevenueInfo class
- YMMMutableUserProfile class
- YMMProfileAttribute class
- YMMReporterConfiguration class
- YMMRevenueInfo class
- YMMUserProfile class
- YMMYandexMetrica class
- YMMYandexMetricaConfiguration class
- YMMYandexMetricaPreloadInfo class
Unity Flutter React Native
Working with reports Working with the API Support and troubleshooting
YMMMutableRevenueInfo class
The mutable version of the YMMRevenueInfo class with information about purchases.
The instance of the YMMRevenueInfo
class should be sent to the AppMetrica server using the reportRevenue method of the YMMYandexMetrica class.
Properties
Additional information to be passed about the purchase. For instance, it can be used for categorizing your products. |
|
ID of the product purchased. The value can contain up to 200 characters. |
|
Number of purchases (item quantity). |
|
Details about the in-app purchase order from App Store. This property is used for validating purchases in the app. |
|
Transaction ID transactionIdentifier from the SKPaymentTransaction class. This property is used for validating purchases in the app. |
Property descriptions
payload
(nonatomic, copy) NSDictionary *payload
Additional information to be passed about the purchase. For instance, it can be used for categorizing your products.
It should contain the NSDictionary
object that can be converted to valid JSON. The maximum size of the value is 30 KB.
productID
(nonatomic, copy) NSString *productID
ID of the product purchased. The value can contain up to 200 characters.
quantity
(nonatomic, assign) NSUInteger quantity
Quantity of products purchased.
It is used in the following formula:
Revenue = quantity * price.
Note
The value cannot be negative. If the value is equal to 0, the purchase is ignored.
receiptData
(nonatomic, copy) NSData *receiptData
Details about the in-app purchase order from App Store. This property is used for validating purchases in the app. For more information, see Apple documentation.
See the example of getting receiptData
in the section Sending Revenue.
Alert
The value must be received before invoking SKPaymentQueue.default ().finishTransaction(transaction)
and transmitted together with transactionID.
transactionID
(nonatomic, copy) NSString *transactionID
Transaction ID transactionIdentifier from the SKPaymentTransaction class. This property is used for validating purchases in the app.
See the example of getting transactionIdentifier
in the section Sending Revenue.
Alert
This value should be passed along with receiptData.