PurchaseInfo
Overview
This structure contains the purchase transaction information needed to gather analytics and validation. In some cases some of the properties may not be filled in - this is normal, look at each field to see if any information needs to be set.
Price
string Price;
Price of the purchased product.
Currency
string Currency;
The transaction currency of the purchased product.
TransactionId
string TransactionId;
Unique identifier of the current transaction.
OriginalTransactionId
string OriginalTransactionId;
Unique identifier of the original transaction (in case the current purchase is original, might be equal to TransactionId
). For example, in the case of renewal of subscription it will be equal to the TransactionId
of the original purchase transaction.
Optional: might not exist for original purchase
PurchaseToken
string PurchaseToken;
Represents Android's purchase token.
Optional: Null
for all other platforms.
Receipt
PurchaseReceiptModel Receipt;
Provides information about the purchase transaction receipt.
SubscriptionInfo
SubscriptionInfo SubscriptionInfo;
Provides additional information about the current purchase if it is a subscription.
Optional: Will be present for subscriptions only.
TrustedPurchaseRecord
TrustedPurchaseRecord TrustedPurchaseRecord { get; set }
Optional: Allows you to attach information validated by some source about the purchase. In this case Magify server will not perform validation on its side for the current purchase, and will rely on data from this record.
SkipVerification
bool SkipVerification { get; set; }
Optional: Marks this purchase as does not require verification through Magify services. In that case Magify isn't going to send verification requests to the server.