PurchasesApi
Import
Import
Constructors
Constructor
-
Parameters
-
Optional configuration: Configuration
-
basePath: string = ...
-
axios: AxiosInstance = ...
Returns PurchasesApi
-
Methods
Make Virtual Purchase
-
Parameters
-
projectId: string
-
playerId: string
-
Optional configAssignmentHash: string
-
Optional playerPurchaseVirtualRequest: PlayerPurchaseVirtualRequest
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<PlayerPurchaseVirtualResponse>>
-
Redeem Apple App Store Purchase
-
Redeem an Apple App Store purchase for a player.
Parameters
-
projectId: string
ID of the project
-
playerId: string
ID of the player
-
Optional configAssignmentHash: string
-
Optional playerPurchaseAppleappstoreRequest: PlayerPurchaseAppleappstoreRequest
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<PlayerPurchaseAppleappstoreResponse>>
-
Redeem Google Play Purchase
-
Redeem a Google Play store purchase for a player.
Parameters
-
projectId: string
ID of the project
-
playerId: string
ID of the player
-
Optional configAssignmentHash: string
-
Optional playerPurchaseGoogleplaystoreRequest: PlayerPurchaseGoogleplaystoreRequest
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<PlayerPurchaseGoogleplaystoreResponse>>
-
Enact a virtual purchase for a player.
Make purchase
{RequiredError}
PurchasesApi