Skip to content

Interface: Purchase

Represents an individual purchase of a game product.

Table of contents

Properties

Properties

developerPayload

• Optional developerPayload: string

A developer-specified string, provided during the purchase of the product.


isConsumed

• Optional isConsumed: boolean

Whether the purchase has been consumed. Facebook only.


paymentActionType

• Optional paymentActionType: string

The current status of the purchase, such as 'charge' or 'refund'. Facebook only.


paymentID

• paymentID: string

The identifier for the purchase transaction.


productID

• productID: string

The product's game-specified identifier.


purchasePlatform

• Optional purchasePlatform: PurchasePlatform

The platform associated with the purchase, such as "FB" for Facebook and "GOOGLE" for Google. Facebook only.


purchasePrice

• Optional purchasePrice: object

Contains the local amount and currency associated with the purchased item. Facebook only.


purchaseTime

• purchaseTime: string

Unix timestamp of when the purchase occurred.


purchaseToken

• purchaseToken: string

A token representing the purchase that may be used to consume the purchase.


signedRequest

• signedRequest: string

Server-signed encoding of the purchase request.