Skip to content

Commit

Permalink
Add Unity instructions and minor version flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Sporiff committed Feb 15, 2024
1 parent 2ba45b3 commit c878da3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/docs/en/sdk/android/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ Parameters:

### Purchase verification

<MinorVersion added="v3.34.0">

If you've enabled [purchase verification](https://help.adjust.com/en/article/purchase-verification), you must send additional information with your purchase events to verify them. When Adjust's servers receive this information in an event object, they forward it to Apple to verify the purchase.

</MinorVersion>

`productId` (String)
: The product identifier of the item that was successfully purchased

Expand Down
4 changes: 4 additions & 0 deletions src/content/docs/en/sdk/ios/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,12 @@ Parameters:

### Purchase verification

<MinorVersion added="v3.34.0">

If you've enabled [purchase verification](https://help.adjust.com/en/article/purchase-verification), you must send additional information with your purchase events to verify them. When Adjust's servers receive this information in an event object, they forward it to Apple to verify the purchase.

</MinorVersion>

`transactionId` (NSString)
: The [`transactionIdentifier` value](https://developer.apple.com/documentation/storekit/skpaymenttransaction/1411288-transactionidentifier) of the successfully completed purchase

Expand Down
31 changes: 31 additions & 0 deletions src/content/docs/en/sdk/unity/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,37 @@ Parameters:
currency EUR
```

### Purchase verification

<MinorVersion added="v3.34.0">

If you've enabled [purchase verification](https://help.adjust.com/en/article/purchase-verification), you must send additional information with your purchase events to verify them. When Adjust's servers receive this information in an event object, they forward it to Apple to verify the purchase.

</MinorVersion>

`productId` (String)
: The product identifier of the item that was successfully purchased

`transactionId` (NSString)
: The [`transactionIdentifier` value](https://developer.apple.com/documentation/storekit/skpaymenttransaction/1411288-transactionidentifier) of the successfully completed purchase. <Badge color="note" icon="PlatformIos">iOS only</Badge>

`receipt` (String)
: The signed receipt containing the information about the successfully completed purchase. <Badge color="note" icon="PlatformIos">iOS only</Badge>

`purchaseToken` (String)
: The purchase token generated for your successfully completed in-app purchase <Badge color="tip" icon="PlatformAndroid">Android only</Badge>

```cs
AdjustEvent adjustEvent = new AdjustEvent("abc123");
adjustEvent.setRevenue(6.0, "EUR");
adjustEvent.setProductId("product-id"); // Android & iOS
adjustEvent.setTransactionId("transaction-id"); // iOS only
adjustEvent.setReceipt("receipt"); // iOS only
adjustEvent.setPurchaseToken("purchase-token"); // Android
only
Adjust.trackEvent(adjustEvent);
```

## Unique events

You can pass an optional identifier to avoid recording duplicate events. The SDK stores the last ten identifiers and skips revenue events with duplicate transaction IDs.
Expand Down

0 comments on commit c878da3

Please sign in to comment.