Interface: Purchase
iap.Purchase
Represents an individual purchase of a game product.
Properties
getDeveloperPayload
• getDeveloperPayload: () => Promise
<undefined
| string
>
An optional developer-specified payload provided during the purchase of the product.
Type declaration
▸ (): Promise
<undefined
| string
>
Returns
Promise
<undefined
| string
>
getPaymentID
• getPaymentID: () => Promise
<string
>
The identifier for the purchase transaction.
Type declaration
▸ (): Promise
<string
>
Returns
Promise
<string
>
getProductID
• getProductID: () => Promise
<string
>
The product’s game-specific identifier.
Type declaration
▸ (): Promise
<string
>
Returns
Promise
<string
>
getPurchaseTime
• getPurchaseTime: () => Promise
<string
>
Unix timestamp of when the purchase occurred.
Type declaration
▸ (): Promise
<string
>
Returns
Promise
<string
>
getPurchaseToken
• getPurchaseToken: () => Promise
<string
>
A token representing the purchase that may be used to consume the purchase.
Type declaration
▸ (): Promise
<string
>
Returns
Promise
<string
>
getSignedRequest
• getSignedRequest: () => Promise
<undefined
| string
>
Server-signed encoding of the purchase request.
Type declaration
▸ (): Promise
<undefined
| string
>
Returns
Promise
<undefined
| string
>