InAppPurchaseResult | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
public interface

# InAppPurchaseResult

com.google.android.gms.ads.purchase.InAppPurchaseResult

## Class Overview

Contains information about the result of a default purchase.

## Summary

Public Methods
abstract void | finishPurchase() Call this method after you finish delivering the product.
abstract String | getProductId() Returns the product ID (SKU).
abstract Intent | getPurchaseData() Returns the response `Intent`.
abstract int | getResultCode() Returns the `Activity` result code of in-app billing request.
abstract boolean | isVerified() Returns `true` if the purchase is successfully verified.

## Public Methods

#### public abstract void finishPurchase ()

Call this method after you finish delivering the product. If this method is not called, the purchase will not get consumed.

#### public abstract String getProductId ()

Returns the product ID (SKU).

#### public abstract Intent getPurchaseData ()

Returns the response `Intent`.

#### public abstract int getResultCode ()

Returns the `Activity` result code of in-app billing request.

#### public abstract boolean isVerified ()

Returns `true` if the purchase is successfully verified.