Vega In-App Purchasing (IAP) works similarly to Fire OS IAP. When you create the path in your code to implement the IAP API, you should be able to use a similar logic flow to Fire OS IAP, but will need to account for different method names and response objects.
Here is a list of the currently available Vega IAP methods mapped to their Fire OS equivalents.
PurchasingService method | Response object | Response code object | Response Codes | Fire OS Equivalent |
---|---|---|---|---|
getUserData() | UserDataResponse | UserDataResponseCode | * SUCCESSFUL * FAILED * NOT_SUPPORTED |
getUserData() |
getPurchaseUpdates() | PurchaseUpdatesResponse | PurchaseUpdatesResponseCode | * SUCCESSFUL * FAILED * NOT_SUPPORTED |
getPurchaseUpdates() |
getProductData() | ProductDataResponse | ProductDataResponseCode | * SUCCESSFUL * FAILED * NOT_SUPPORTED |
getProductData() |
purchase() | PurchaseResponse | PurchaseResponseCode | * SUCCESSFUL * FAILED * ALREADY_PURCHASED * INVALID_SKU * NOT_SUPPORTED |
purchase() |
notifyFulfillment() | notifyFulfillmentReponse | notifyFulfillmentResponseCode | * SUCCESSFUL * FAILED * NOT_SUPPORTED |
notifyFulfillment() |
Tier & Term Switching
PurchasingService method | Response object | Response code object | Response Codes | Fire OS Equivalent |
---|---|---|---|---|
modifySubscription() | ModifySubscriptionResponse | ModifySubscriptionResponseCode | * SUCCESSFUL * FAILED * INVALID_SKU * INVALID_REQUEST * NOT_SUPPORTED |
modifySubscription() |