> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# player_realmoney_purchase

> player_realmoney_purchase event.

玩家进行真实货币购买并为游戏产生收入时触发此事件。

## 属性

| 名称 | 类型 | 描述 |
| :- | :- | :- |
| OrderId | String | 订单的唯一标识符。 |
| OrderTotal | uint32 | 以系统货币计的购买总额（默认为美元）。 |
| PaymentProvider | String | 用于进行购买的支付提供程序。 |
| PaymentType | [PaymentType](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/paymenttype.md) | 用于进行购买的付款类型。 |
| PurchasedProduct | \[] | 已购买物品在目录中的 ItemId（如果适用）。 |
| TitleId | String | 此玩家事件适用的游戏 ID。 |
| TransactionCurrency | [Currency](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/currency.md) | 用于进行购买的本地货币（如果适用）。 |
| TransactionId | String | 交易的唯一标识符。 |
| TransactionTotal | uint32 | 以用于购买的本地货币计的购买总额（如果适用）。 |

## 常用属性

所有 V1 PlayStream 事件都格式化为 JSON 对象，并共享以下常用属性：

| 名称 | 类型 | 描述 |
| :- | :- | :- |
| EntityId | String | 此事件适用的实体（游戏、玩家等）的标识符。 |
| EntityType | String | 此事件适用的实体类型（player、title 等）。如果 PlayFab 需要对此实体执行操作，则 EntityType 必须为 'player'、'character' 或 'title' 之一。任何 PlayFab 当前未解析的实体类型都必须添加命名空间前缀（例如 'com.mygame.guild'），因为 PlayFab 随时可能开始解析根实体。 |
| EventId | String | PlayFab 为此事件分配的唯一标识符。 |
| EventName | String | 此事件的名称。 |
| EventNamespace | String | 为此事件分配的命名空间。例如：'com.myprogram.ads' |
| Source | String | 此 PlayStream 事件源的名称；如果事件源自我们，则值为 PlayFab。 |
| SourceType | [SourceType](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/sourcetype.md) | 此事件的源类型（PlayFab 合作伙伴、其他后端或来自 PlayFab API）。 |
| Timestamp | DateTime | 与此事件关联的时间（UTC）。 |


## Related topics

- [PlayStream 事件模型参考](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/index.md)
- [记分卡指标](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/game-configuration/experiments/scorecard-metrics.md)
- [趋势](https://docs.xbox.com/zh-CN/services/playfab/data-analytics/learn-data/trends/trends-overview.md)
- [PlayFab 2017 版本发布说明](https://docs.xbox.com/zh-CN/services/playfab/release-notes/2017.md)
- [将实验与其他 PlayFab 服务集成](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/game-configuration/experiments/experiments-other-services.md)
